When I multiply 4.6 by 100 in python, I get result 459.99999999999994 instead of 460. Why is this happening and what should I do to avoid this error?
Asked
Active
Viewed 28 times
0
Lekhnath
- 4,532
- 6
- 36
- 62
-
Use the decimal package – Tom McLean Sep 05 '22 at 09:08