Skip to main content

hexToNumber

Callable

  • hexToNumber(value: string): number | bigint

  • Converts value to it's number representation

    @example
    conoslle.log(web3.utils.hexToNumber('0xa'));
    > 10

    Parameters

    • value: string

      Hex string to be converted

    Returns number | bigint

    • The number representation of the input value