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.
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.