• Rounds the given value to dp decimal places.

    Parameters

    • value: number

      The value to round.

    • dp: number

      The number of decimal places.

    Returns number

    The rounded value.