MATLAB Function Reference
  Go to function:
    Search    Help Desk 
hex2num    Examples   See Also

Hexadecimal to double number conversion

Syntax

Description

f = hex2num('hex_value') converts 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

Limitations

hex2num only works for IEEE numbers; it does not work for the floating-point representation of the VAX or other non-IEEE computers.

See Also

format      Control the output display format

hex2dec     IEEE hexadecimal to decimal number conversion

sprintf     Write formatted data to a string



[ Previous | Help Desk | Next ]