From 14ce5d2ccfae554497763da846ffb9eb39cd6d34 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 23 九月 2019 12:55:26 +0800
Subject: [PATCH] 1. 修改实时数据各项的转换逻辑

---
 src/test/kotlin/com/flightfeather/obd/Test.kt |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/test/kotlin/com/flightfeather/obd/Test.kt b/src/test/kotlin/com/flightfeather/obd/Test.kt
index 0693195..f16c654 100644
--- a/src/test/kotlin/com/flightfeather/obd/Test.kt
+++ b/src/test/kotlin/com/flightfeather/obd/Test.kt
@@ -14,7 +14,8 @@
     @Test
     fun foo1() {
         val b = ByteArray(20) {8}
-        println(b[18])
+        val a = 1
+        println(a.toString(2))
     }
 
     @Test
@@ -127,4 +128,11 @@
 
         println(SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(cal.time))
     }
+
+    @Test
+    fun f0012() {
+        val a  = "80ffffff".toBigInteger(16)
+        val b = a?.toDouble()
+
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3