Why this python code
print 888888803. == 8888888.03*100.
prints False?
Asked
Active
Viewed 54 times
0

rolish
- 147
- 1
- 5
-
Because `8888888.03 * 100` is `888888802.9999999` when you calculate it in python – smac89 Nov 08 '16 at 16:28
-
2You seem to know the answer already because you've added the [tag:rounding] tag. – ForceBru Nov 08 '16 at 16:30
-
https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html – SK-logic Nov 08 '16 at 16:31