convnum
    Preparing search index...

    Function fromBase

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

      Parameters

      • str: string

        The string to convert

      • base: number

        The base of the input string (2-36)

      Returns number

      The decimal representation as a number

      Error if base is out of range or if input is invalid