News for hackers. Stuff that matters.
Re:0.30000000000000004 by iamphilrae on Friday November 13, 2015 @10:05AM (#10560169)
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.
Re:0.30000000000000004 by acqq on Friday November 13, 2015 @10:26AM (#10560300)
See also:

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.