BASE

Converts a positive integer to a specified base into a text from the numbering system. The digits 0-9 and the letters A-Z are used.

Sintaxis

BASE(Number; Radix [; MinimumLength])

Númberu ye'l númberu enteru positivu tien de convertise.

Radix indicates the base of the numeral system. It may be any positive integer between 2 and 36.

LongitudMínima (opcional) determina'l llargor mínimu de la secuencia de caráuteres que se creó. Si'l testu ye más curtiu que'l llargor mínimu indicada, amiéstense ceros a la izquierda de la cadena.

Exemplu

=BASE(17;10;4) devuelve 0017 nel sistema decimal.

=BASE(17;2) devuelve 10001 nel sistema binariu.

=BASE(255;16;4) devuelve 00FF nel sistema hexadecimal.

Please support us!