Rounds a number to a specified number of decimal places.
Uses the standard rounding algorithm (round half up) to round the number to the given precision. The precision must be a positive safe integer.
The number to round
The number of decimal places (must be positive)
The rounded number
Rounds a number to a specified number of decimal places.
Uses the standard rounding algorithm (round half up) to round the number to the given precision. The precision must be a positive safe integer.