devela::_dep::js_sys

Function parse_float

Source
pub fn parse_float(text: &str) -> f64 
Available on crate feature dep_js_sys only.
Expand description

The parseFloat() function parses an argument and returns a floating point number, or NaN on error.

MDN documentation