ToBase Command

ToBase( <Number>, <Base> )

Converts given number into different base. The base must be between 2 and 36. The number must be an integer.

  • ToBase(255,16) returns "FF".

  • ToBase(256, 2) returns "100000000".

See also FromBase command.