Function fixed2float::to_float_str
source · [−]Expand description
Compute the real value represented by bits (str).
use fixed2float::to_float_str;
assert_eq!(to_float_str("00010011000000100001", 12, 8), Ok(304.12890625));Compute the real value represented by bits (str).
use fixed2float::to_float_str;
assert_eq!(to_float_str("00010011000000100001", 12, 8), Ok(304.12890625));