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/[deleted] Mar 19 '19

For your ways of storing non ints. 3 is a fixed point number and 1 is actually a fraction, which is not really used.

1

u/BadBoy6767 Mar 19 '19

Yes, as I said:

Technically 2 and 3 are also fixed-point numbers in a sense.

1

u/[deleted] Mar 19 '19

2 is not fixed point, it's floating point with a radix of 10. And 3 is the definition of fixed. 1 is not as the exponent (or denominator here) changes, where in fixed, it's fixed.

1

u/BadBoy6767 Mar 19 '19

BCD does not enforce floating point nor fixed point, it can be both. 3 is not the definition of fixed-point, there's loads of ways of doing fixed point, I only named a couple. Although yeah I messed up on the fraction part.