3 ms·
THANK YOU! That is one of the best explanations on that matter I have seen. I've never considered why floating points are inaccurate, I just took it for a given
by iamphilrae 11y ago
THANK YOU! That is one of the best explanations on that matter I have seen. I've never considered why floating points are inaccurate, I just took it for a given (which I hate doing). Now I understand why, and so my own wisdom has increased ever so slightly. Today is a good day.
- acqq 11y agoSee also: http://cs.furman.edu/digitaldomain/more/ch6/dec_frac_to_bin.htm http://cs.furman.edu/digitaldomain/more/ch6/dec_frac_to_bin.... ".1 (decimal) = .00011001100110011 . . . (base 2)" Notice the repeating pattern? The exact number must have infinite number of binary digits. Wherever you cut (whichever fixed number of bits you want to keep) you lose something.