pub fn parse(string: &str) -> f64
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.
Number(string)
StringToNumber
Infinity
0x
0o
0b
NaN