4 ms·
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
by chewxy 12y ago
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
- ygra 12y agoThe 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.