Skip to main content

format_float

Function format_float 

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

Format a float the way libasdf’s emitter does.

%.17g for doubles, with YAML’s own spellings for the non-finite values.