大家测试一个有趣的现象,double型反而没有single型精确
大家测试一个有趣的现象,double型反而没有single型精确???[code=SQL]
Private Sub Command1_Click()
Dim a As Double
Dim b As Single
a = 89.13!
b = 89.13!
Debug.Print "a --- " & a
Debug.Print "b --- " & b
End Sub
'
'a ---89.129997253418
'b ---89.13
[/code]
我不解的是为什么,single反而比double精确度高,怪。