Skip to main content

format_g

Function format_g 

Source
fn format_g(v: f64, prec: usize, upper: bool) -> String
Expand description

Format using %g/%G: use shorter of %f and %e, removing trailing zeros.