pub fn f64_to_q1_31(value: f64) -> Result<u32, NumberOutOfRange>
convert float point to fixed point format