pub fn parse_float(text: &str) -> f64 ⓘ
dep_web_sys
The parseFloat() function parses an argument and returns a floating point number, or NaN on error.
parseFloat()
MDN documentation