• Returns the precise representation of a number with the specified number of decimal places.

    Returns

    The precise representation of the value with the specified number of decimal places.

    Parameters

    • value: string | number

      The value to convert to a precise number.

    • Optional decimals: number = 2

      The desired number of decimal places.

    Returns number

Generated using TypeDoc