Table Of Contents

base_to_dec

Version:
    Last Modified: March 15, 2017

    Converts a base b number represented by a string or a string vector to a decimal number.

    Syntax

    c = base_to_dec(a, b)
    Legacy name: base2dec

    Inputs

    a

    Number in base b. The base b notation uses the following digits: 0, 1, ... , 9, A, B, ... , Z. a is a string vector.

    b

    Base of a. b can be any integer between 2 and 36.

    Outputs

    c

    Decimal number equivalent to a. c is a double vector.

    A = '1AD00X'
    C = base_to_dec(A, 36)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics