Skip to main content

from_hex

Function from_hex 

Source
pub fn from_hex(s: &str) -> Result<f64, HexFloatError>
Expand description

Parse a hexadecimal floating-point string (the float.fromhex grammar).

The raw string is consumed as-is: leading and trailing whitespace are handled internally using the ASCII space set, so callers must not trim first.