Nado Typescript SDK Documentation
    Preparing search index...

    Function removeDecimals

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

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

      Returns AdjustDecimalsResult<T>