Skip to main content

number_to_string

Function number_to_string 

Source
pub fn number_to_string(v: f64) -> String
Expand description

JavaScript’s String(number) (ECMAScript Number::toString): the shortest round-trip digits, plain from 1e-6 up to 1e21, exponent form (1e-7, 1e+21) outside; -0 → 0, NaN, Infinity.