+ 5
Why 0.1 + 0.2 != 0.3 in python
0.1 + 0.2 == 0.3 Output :- False
5 Antworten
+ 3
Because
print(0.1 + 0.2) = 0.30000000000000004
+ 2
because impossibility to store some decimal values as binary floating point numbers without loosing accuracy ^^
https://lemire.me/blog/2020/10/10/why-is-0-1-0-2-not-equal-to-0-3/
0
Value is changed after addition of points value..
0
Use function to round off your addition
0
Sweety Pico It's just a floating point error.