1
在斯卡拉試試這個:階數學圓誤差
val value1 = -1.3323651E7f
val value2 = Math.round(value1)
val value3 = value1.toInt
val value4 = Math.round(value3)
value1: Float = -1.3323651E7
value2: Int = -13323650
value3: Int = -13323651
value4: Int = -13323650
爲什麼value2
和value4
不同value1
和value3
?