3 ms·
Only the normal floating point numbers have this property, the sub-normals do not. In the single precision floats for example there is no 0.0000000000000000000
by tialaramex 2y ago
Only the normal floating point numbers have this property, the sub-normals do not.
In the single precision floats for example there is no 0.000000000000000000000000000000000000000000002
it goes straight from 0.000000000000000000000000000000000000000000001
to 0.000000000000000000000000000000000000000000003
So that's not even one whole digit of precision.
- pclmulqdq 2y agoYes, that is true. The subnormal numbers gradually lose precision going towards zero.
- hoseja 2y agoSubnormals are a dirty hack to squeeze a bit more breathing space around zero for people who really need it. They aren't even really supported in hardware. Using them in normal contexts is usually an error.