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

    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 add, defaults to 18, which is the standard within Vertex

    Returns T