0

My calculator does not round correctly. How to fix?

Hi guys! I used the eval() to make a calculator and I found an errors in the calculations. For example: if you subtract 0.7 from 8.7 the answer is 7.999999999999999. How can I fix this bug?" Code is here: https://code.sololearn.com/WkBlbmppsdou

27th Aug 2021, 7:11 AM
Sergei Isáichenko
Sergei Isáichenko - avatar
2 Respostas
+ 1
Delicate Cat, I haven't learned Python yet:)
28th Aug 2021, 2:18 PM
Sergei Isáichenko
Sergei Isáichenko - avatar