The IEE754 floating point (64 bits) should correctly represent 15 significant digits, although the internal representation has 17 ditigs. Is there a way to force the 16th and 17th digits to zero?
Ref: http://msdn.microsoft.com/en-us/library/system.double ( VS.80)
.aspx :,.
Remember that a floating point number can only approximate a decimal number and that the precision of a floating point number determines how accurately this number approaches a decimal number. By default, a double value contains 15 decimal digits of precision, although no more than 17 digits are supported internally. The precision of a floating point number has several consequences:,.
Example: d1 = 97842111437.390091
d2 = 97842111437.390076
d1 and d2 differ in 16th and 17th decimal places, which should not be significant. Looking for ways to get them to zero. those. d1 = 97842111437.390000 d2 = 97842111437.390000
source
share