Function decorum::hash_float
source · Expand description
Hashes a primitive floating-point value.
To perform the hash, the floating-point value is canonicalized. If NaN
or
zero, a canonical form is used so that all NaN
s result in the same hash
and all zeroes (positive and negative) result in the same hash.