hex2num
Convert IEEE hexadecimal format to double-precision number
Syntax
Description
converts X
= hex2num(hexStr
)hexStr
to the double-precision floating-point number that it
represents. The input argument hexStr
has up to 16 characters
representing a number in its IEEE® format using hexadecimal digits. If hexStr
has fewer than
16 digits, then hex2num
pads hexStr
with zeros to
the right.
Unlike the hex2dec
function, hex2num
can
convert inputs that represent floating-point values with fractional parts. Also,
hex2num
handles NaN
and Inf
value and denormal numbers correctly.
If hexStr
represents multiple numbers, then
hex2dec
returns the numbers as a column vector of double-precision
numbers.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced before R2006a