Function jj_lib::fmt_util::binary_prefix
source ยท pub fn binary_prefix(x: f32) -> (f32, &'static str)
Expand description
Find the smallest binary prefix with which the whole part of x
is at most
three digits, and return the scaled x
, that prefix, and the associated
base-1024 exponent.