Comment on What every computer scientist should know about floating-point arithmetic (1991) [pdf]parentComments−SideQuark5moYes. A computer scientist should know how numbers are represented and not expect non-representable numbers in that format to be representable.0.1 is just as non-representable in floating point as is pi as is 100^100 in a 32 bit integer.Terminating dyadic rationals (up to limits based on float size) are the representable values.−Sharlin5moI’m not sure if you got my joke but I referred to the mathematical philosophy, finitism.
Comments
Yes. A computer scientist should know how numbers are represented and not expect non-representable numbers in that format to be representable.
0.1 is just as non-representable in floating point as is pi as is 100^100 in a 32 bit integer.
Terminating dyadic rationals (up to limits based on float size) are the representable values.
I’m not sure if you got my joke but I referred to the mathematical philosophy, finitism.