pub(crate) fn format_float_g(value: f64) -> String
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.
strconv.FormatFloat(value, 'g', -1, 64)
%g
%v