convnum
    Preparing search index...

    Function toBase

    • Converts a decimal number to a string in the specified base

      Parameters

      • num: number

        The decimal number to convert

      • base: number

        The base to convert to (2-36)

      Returns string

      The representation in the specified base as a string

      Error if base is out of range