• Rounds a number to the specified set of decimals, removing trailing zeroes. If decimals is undefined, this will throw an error

    See

    toFixedDecimals , this function fulfils a similar purpose but does not cut off trailing zeroes in decimals if they are within the decimals specified

    Parameters

    • value: Value
    • decimals: number

    Returns string

Generated using TypeDoc