求助 Double精度的问题
在vb.net中
定义 Dim c As Double = 999999999999999.99 时
程序会自动转化为Dim c As Double = 1.0E+15的形式
另外:Dim c As Double = 999999999999999.91--〉Dim c As Double = 999999999999999.87
Dim c As Double = 999999999999999.85--〉Dim c As Double = 999999999999999.87
Dim c As Double = 999999999999999.81--〉Dim c As Double = 999999999999999.75
自动变换等问题。
例如:
999999999999999.99-999999999999999.98=0.01
但在程序中则等于0值.与应得值不一致.
因为要做数字方面的计算,精度很重要.
特求助大家有没有解决方法.