[−][src]Function strtod2::strtod
pub fn strtod(input: &str) -> Option<f64>
Parses a 64-bit floating point number.
Leading whitspace and trailing characters are ignored. If the input
string does not contain a valid floating point number (where e.g.
"."
is seen as a valid floating point number), None
is returned.
Otherwise the parsed floating point number is returned.
This implementation is a translation from http://mxr.mozilla.org/mozilla-central/source/js/src/dtoa.c.