• Removes potential floating point noise from input amount beyond given decimal level denoise(9.535695950000001, 9) -> 9.535695950

    Parameters

    • amount: string | number

      The string or number to denoise

    • decimals: number

      The number of decimals for the token this amount is of

    Returns number

    A number, with no floating point noise

Generated using TypeDoc