• A //Quantity// does not have and leading 0 values unless the value is the literal value 0x0. This is most commonly used for JSSON-RPC numeric values.

    It will parse '0x' prefixed hex strings, base-10 encoded numbers and numbers.

    Parameters

    • quantity: string | number

    Returns number

    Quantity as an integer