4 ms·
Such as? Reading up on the format [1] it seems that every value is defined, which includes a ton of possible NaN values [2]. [1] https://en.wikipedia.org/wiki
by spc476 9y ago
Such as?
Reading up on the format [1] it seems that every value is defined, which includes a ton of possible NaN values [2].
[1] https://en.wikipedia.org/wiki/Double-precision_floating-point_format https://en.wikipedia.org/wiki/Double-precision_floating-poin...
[2] If you read the actual IEEE 754 spec, one suggested use for a NaN value is the address of the offending instruction(s); otherwise there is no defined pattern for NaNs in IEEE-754.
- jnordwick 9y ago> it seems that every value is defined, > there is no defined pattern for NaNs ? I was referring to using a NaN value without a zeroed mantissa.
- spc476 9y ago? A NaN is defined as the maximum exponent (all ones) and a non-zero mantissa. By "no defined pattern for NaNs" I meant there was no fixed value for a single NaN.