• Removes the specified # of decimals from the number. For example, value = 100, decimals = 2, returns 1.

    Type Parameters

    • T extends undefined | number | BigNumber

    Parameters

    • value: T

      can be undefined for better developer experience. If undefined, returns undefined.

    • decimals: number = VERTEX_PRODUCT_DECIMALS

      number of decimal places to remove, defaults to 18, which is the standard within Vertex

    Returns T