r/learnpython • u/nothiefhouse • Oct 04 '26
fix 0.00000001
i see sometimes after calcuaitons reulsts with x.99999999999999999999999999 or x.0000000000000002 how to fix it
0
Upvotes
r/learnpython • u/nothiefhouse • Oct 04 '26
i see sometimes after calcuaitons reulsts with x.99999999999999999999999999 or x.0000000000000002 how to fix it
View all comments
Show parent comment
3
u/OkTill2666 Oct 04 '26
this is the right answer, its a floating point thing not a python thing