BASE

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

Converts a number into a text representation with the given radix (base).

Parameters:

Name Type Description
arg1 number

Is the number that you want to convert.

arg2 number

Is the base Radix that you want to convert the number into.

arg3 number

Is the minimum length of the returned string. If omitted leading zeros are not added.

Returns:

Type
number | string | boolean