Rounding oddity – what is special about “100”? [duplicate]

The number 1.1 cannot be represented in finite form in binary. It looks like 1.00011001100110011…

“Rounding errors” are just mathematically inevitable with simple floating-point arithmetic. If you want accuracy, use a Decimal number type.

http://support.microsoft.com/kb/42980

Leave a Comment