Skip to main content

str_to_float

Function str_to_float 

Source
pub fn str_to_float(s: &[u8]) -> f64
Expand description

(float) $string / floatval($string) (zend_strtod): the leading decimal number after optional whitespace, 0.0 when there is none. Hexadecimal, INF and NAN are not numbers; "-0" is -0.0; huge exponents give infinity.