First page Back Continue Last page Overview Graphics
A Simple Tax Calculation
We want to calculate a 5% tax (rounded to the nearest cent) on a $0.70 phone call:
Calculating with binary floats:
>>> 0.7 * 0.05
0.034999999999999996
Rounds to 3 cents!
Notes: