pub fn to_float(bits: u64, m: u8, n: u8) -> f64
Convert bits in the format Qm.n into a real number.
bits
Qm.n
use fixed2float as f2f; assert_eq!(f2f::to_float(0x13021, 12, 8), 304.12890625);