| MATLAB Function Reference | ![]() |
Hexadecimal to double number conversion
Syntax
f = hex2num('hex_value')
Description
f = hex2num(' converts hex_value')
hex_value to the IEEE double-precision floating-point number it represents. NaN, Inf, and denormalized numbers are all handled correctly. Fewer than 16 characters are padded on the right with zeros.
Examples
f = hex2num('400921fb54442d18')
f =
3.14159265358979
See Also
| hex2dec | hgload | ![]() |