29 ms·
A 32 bit floating point number can only have around 4 billion unique values, yet must represent numbers from 10^38, to very small decimals. 99.99999% of numbers
by swebs 7y ago
A 32 bit floating point number can only have around 4 billion unique values, yet must represent numbers from 10^38, to very small decimals. 99.99999% of numbers in this range cannot be accurately represented in floating point form.
Compare that to a 32 bit integer, which can have 4 billion unique values, and supports numbers from 0 to 4 billion. It's a 1:1 mapping.
- bspammer 7y agoTo be mathematically pedantic, 100% of numbers in that range cannot be accurately represented in floating point form.
- seppel 7y ago> yet must represent numbers from 10^38 No, they don't must represent all number in the range. I don't know where you get from that they must. An integer also can't represent all real numbers in its range.