convnum
    Preparing search index...

    Function fromHex

    • Converts a hexadecimal string to a decimal number

      Parameters

      • hex: string

        The hexadecimal string to convert (with or without 0x prefix)

      Returns number

      The decimal representation as a number

      Error if input is not a valid hexadecimal string