Skip to main content

parse

Function parse 

Source
pub fn parse(string: &str) -> f64
Expand description

Number(string) in JS (ECMAScript StringToNumber): trims JS whitespace, maps the empty string to 0, and accepts decimal, Infinity, and 0x/0o/0b literals. Anything else is NaN.