Function 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.