Table Of Contents

hex_to_num

Version:
    Last Modified: March 15, 2017

    Converts hexadecimal numbers to double-precision, floating-point numbers.

    Syntax

    c = hex_to_num(a)
    Legacy name: hex2num

    Inputs

    a

    Hexadecimal number or vector of hexadecimal numbers. Valid hexadecimal characters are: 0-9, a, b, c, d, e, f. You also can use the following characters: 0-9, A, B, C, D, E and F. a is a 16-character string. If a has fewer than 16 characters, MathScript pads the end of the string with zeros.

    Outputs

    c

    Double-precision number or vector of double-precision numbers equivalent to a.

    A = '410aa1109f';
    C = hex_to_num(A)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics