Skip to main content

parse_f64

Function parse_f64 

Source
pub fn parse_f64(bytes: &[u8]) -> Option<f64>
Expand description

Parse a JSON number byte-slice as f64. Uses fast-float (SSE/AVX SIMD) when the feature is enabled, falls back to str::parse otherwise.

Returns None on malformed input or non-UTF-8 bytes.