Skip to main content

format_float

Function format_float 

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

Format a float the way JSON does: whole numbers keep no fraction.