Function std::f32::from_str_hex

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

Convert a string in base 16 to a float. Accepts a 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].