Converts a number into a text representation with the given radix (base).
Sintaxe
BASE(number, radix, [min_length])Argumentos
numberobrigatório
The decimal number you want to convert.
radixobrigatório
The base to convert to, an integer between 2 and 36.
min_lengthopcional
The minimum length of the returned string, padded with leading zeros if necessary.
The BASE function converts a decimal number into a string representation in a specified base. It supports bases ranging from 2 to 36, allowing for easy conversion between decimal, binary, hexadecimal, and other numeral systems.
=BASE(7, 2)→111Converts the decimal number 7 to binary.
=BASE(255, 16, 4)→00FFConverts 255 to hexadecimal with a minimum length of 4.
Select a cell
Click on the cell where you want to display the converted value.
Enter the function
Type =BASE(number, radix) and replace the arguments with your specific values.
Press Enter
Press Enter to execute the formula and view the converted string result.
The BASE function supports a maximum radix of 36.