Skip to main content

js_number

Function js_number 

Source
pub fn js_number(text: &str) -> f64
Expand description

JavaScript’s Number(text): surrounding whitespace ignored, 0 for empty text, unsigned 0x, 0o and 0b integers, Infinity with an optional sign, else a decimal literal, and NaN for anything else.