4 ms·
Yes! Since any function returning a float might need to return NaN, NaNs are represented as a special kind of float, with most bits unused.
by dgroshev 2y ago
Yes! Since any function returning a float might need to return NaN, NaNs are represented as a special kind of float, with most bits unused.
- skerit 2y agoCool. Is that why NaN isn't equal to anything? Not even when comparing a NaN variable to itself? (I assume it's because you can't have some NaN values be equal, and others not)