pub fn f64_to_u64(val: f64) -> u64
For simplicity, tantivy internally handles
The mapping is defined by this function.
u64 so that lexical order is preserved.
This is more suited than simply casting (
val as u64)
which would truncate the result
The reverse mapping is