# base_to_dec

Version:

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

## 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.

## 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