BASE Function

The BASE function is one of the math and trigonometry functions. It is used to convert a number into a text representation with the given base.

The BASE function syntax is:

BASE(number, base[, min-lenght])

where

number is a number you want to convert. An integer greater than or equal to 0 and less than 2^53.

base is a base you want to convert the number to. An integer greater than or equal to 2 and less than or equal to 36.

min-lenght is a minimum length of the returned string. An integer greater than or equal to 0 and less than 256. It is an optional parameter. If the result is shorter than the minimum lenght specified, leading zeros are added to the string.

The numeric values can be entered manually or included into the cells you make reference to.

To apply the BASE function,

  1. select the cell where you wish to display the result,
  2. click the Insert function Insert function icon icon situated at the top toolbar,
    or right-click within a selected cell and select the Insert Function option from the menu,
    or click the Function icon icon situated at the formula bar,
  3. select the Math and trigonometry function group from the list,
  4. click the BASE function,
  5. enter the required arguments separating them by comma,
  6. press the Enter button.

The result will be displayed in the selected cell.

BASE Function