Function yapb::prefix::fmt_sigfigs

source ·
pub fn fmt_sigfigs(f: &mut Formatter<'_>, value: f64, figures: usize) -> Result
Expand description

Format value compactly with exactly figures significant figures

For compactness, exponential notation is used for values that are larger than 1eN or smaller than 1e-N.