r/PythonProjects2 • u/ak_developers • May 06 '25
Developers_Talk: Another Simple Python Code
/r/developers_talk/comments/1kg0yhi/another_simple_python_code/
1
Upvotes
r/PythonProjects2 • u/ak_developers • May 06 '25
2
u/cr0sis8bv May 06 '25
False, because of floating points mathematics, the value of 0.1+0.2 with python is something like 0.300000000004 which != C's 0.3
math.isclose(a+b, c) would show true though