Skip to main content

format_float_g

Function format_float_g 

Source
pub(crate) fn format_float_g(value: f64) -> String
Expand description

Go’s strconv.FormatFloat(value, 'g', -1, 64), which %g and %v print a float in: the shortest digits, with an exponent of at least two digits below 1e-4 and from 1e6 on.