Re:What every computer programmer should know about floating...
by chewxy on Monday September 15, 2014 @11:56PM
(#8322948)
Come up with something that can represent every number then? IEEE754 may be a pain in the ass, but dumb is not a word I'd use to describe it
[ Parent
| on HN ]
Re:What every computer programmer should know about floating...
by ygra on Tuesday September 16, 2014 @01:28AM
(#8323197)
The problem is, I guess, that people assume that floating-point numbers represent real numbers and behave like those. But while they're an often useful approximation, they are governed by very different laws. The same holds for integers in computers (except bigints), but the only place where they bite you is overflow and not by unexpected behaviour over the whole range of numbers.