DECIMAL

DECIMAL(arg1, arg2) → { number | string | boolean }

Converts a text representation of a number in a given base into a decimal number.

Parameters:

Name Type Description
arg1 string

Is the number that you want to convert.

arg2 number

Is the base Radix of the number you are converting.

Returns:

Type
number | string | boolean