Skip to main content

hexToNumberString

Callable

  • hexToNumberString(data: string): string

  • Converts value to it's decimal representation in string

    @example
    console.log(web3.utils.hexToNumberString('0xa'));
    > "10"

    Parameters

    • data: string

    Returns string

    • The decimal representation of the input value