pub fn encode_f64(val: f64, descending: bool, key: &mut Vec<u8>)Expand description
Encodes an f64 value as memcomparable bytes.
Uses IEEE 754 total ordering trick: if positive, flip sign bit; if negative, flip all bits. This gives correct ordering for all finite values, infinities, and NaN.