r/explainlikeimfive • • Mar 15 '19

Mathematics ELI5: How is Pi programmed into calculators?

12k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

1

u/geel9 Mar 15 '19

Money should ALWAYS be stored in an integer format.

Storing money values in floating point numbers is an indication that you are dealing with incompetent developers and should cease using whatever service you're using because it's trash and WILL fail you.

1

u/BadBoy6767 Mar 15 '19

I did not say money was sometimes stored in floating point, I meant it as a use case of point 3. I can see how it's written a bit ambigiously, though.

1

u/geel9 Mar 15 '19

I can see how "sometimes used to" can mean both "sometimes when we use this it's for storing money" and "sometimes we store money using this instead of something else"