r/Python • • Oct 07 '20

Discussion Anyone else uses the Python interpreter as a calculator?

It's just so comfy.

1.7k Upvotes

252 comments sorted by

View all comments

Show parent comments

1

u/TheBlackCat13 Oct 08 '20

0.1+0.2 isn't 0.3 in Python on a computer lol. Try it!

FTFY

1

u/oiwot Oct 08 '20 edited Oct 08 '20

LOL, bc, dc, qalc, and even emacs all get it precisely right... I stopped testing after those 4. Try it!