Skip to main content

format_finite_double

Function format_finite_double 

Source
fn format_finite_double(f: f64) -> String
Expand description

Format a finite, non-integer f64 to its shortest decimal representation.

When the fast-format feature is enabled, uses the zmij crate (Schubfach/yy algorithm) for significantly faster conversion. Falls back to format!("{}", f) otherwise.