Skip to main content

numeric_hash_f64

Function numeric_hash_f64 

Source
pub fn numeric_hash_f64(f: f64) -> u64
Expand description

The unified numeric hash of an f64: m · 2^e mod P via modular exponentiation (2^61 ≡ 1, so the exponent reduces mod 61). NaN and the infinities take fixed sentinels outside the finite-value pattern.