Nado Typescript SDK Documentation
    Preparing search index...

    Function addDecimals

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

      Type Parameters

      Parameters

      • value: T

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

      • decimals: number = NADO_PRODUCT_DECIMALS

        number of decimal places to add, defaults to 18, which is the standard within Nado

      Returns AdjustDecimalsResult<T>