Skip to main content

format_number

Function format_number 

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

Shows a number the way a person expects: without the noise of binary fractions, so 0.1 + 0.2 is 0.3, and in scientific notation when it does not fit.