baseconv - luxembourg/muxcode-clm GitHub Wiki

BASECONV()

FUNCTION: baseconv(<number>, <input radix>, <output radix>)

Converts <number>, which is in base <input radix> to base <output radix>. The bases can be between 2 (binary) and 64, inclusive. Positive and negative numbers are supported except for bases 63 and base 64 where - is not available. When converting from base 64, + and / have place value 62 and 63, respectively.

Bases 36 and under use the following symbols:

0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ

Bases over 36 use base64 url string:

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_

Related Topics: pack, unpack