# BASE

**The BASE function converts a Number to a String with the given radix.**

#### Declaration

```javascript
BASE(number, radix, min_length) -> string
```

#### Parameters

**number** (required, type: _number_) The decimal number to be converted to **radix**.

**radix** (required, type: _number_) The radix or base the number should be converted to.

**min\_length** (optional, type: _number_) The minimum length the String should be. If the converted number contains less than **min\_length** digits, it will be prefixed with zeros making the final string **min\_length** long.

#### Return Values

**string** (type: _number_) The converted number as a string

#### Examples

In addition to the normal digits zero through nine, the base 16 number system also represents digits with the characters 'a', 'b', 'c', 'd', 'e', and 'f'. A rather famous hexadecimal number in computer science is the number **3735928559**.

```javascript
BASE(3735928559, 16) -> "deadbeef"
```

We could prefix eight zeros by specifying that the string should be no less than sixteen digits long.

```javascript
BASE(3735928559, 16, 16) -> "00000000deadbeef"
```
