parse_leading_number

Function parse_leading_number 

Source
pub fn parse_leading_number(s: &str) -> f64
Expand description

Parse the leading numeric portion of a string using optimized byte-based parsing “42abc” -> 42.0 “ 3.14 “ -> 3.14 “abc” -> 0.0