[src]

Function std::f64::from_str_hex

pub fn from_str_hex(num: &str) -> Option<f64>

Convert a string in base 16 to a float. Accepts an optional binary exponent.

This function accepts strings such as

Leading and trailing whitespace represent an error.

Arguments

Return value

None if the string did not represent a valid number. Otherwise, Some(n) where n is the floating-point number represented by [num].