The ROUND function rounds a number to a specified number of digits.

ROUND takes 1 required argument and 1 optional argument:

Syntax: ROUND(number, [num_digits])

#1)
Using the ROUND function:
#2)
The arguments for the ROUND function are:
Argument Required? Description
number Required The number you want to round.
num_digits Optional The number of digits to which you want to round the number argument.
#3)
A few more things:
If num_digits is greater than 0 (zero), then number is rounded to the specified number of decimal places.
If num_digits is 0, the number is rounded to the nearest integer.
If num_digits is less than 0, the number is rounded to the left of the decimal point.
To always round up (away from zero), use the ROUNDUP function.
To always round down (toward zero) use the , use the ROUNDDOWN function.
To round a number to a specific multiple (for example, to round to the nearest 0.5), use the MROUND function.

Summary

The ROUND function rounds a number to a specified number of digits.
comments powered by Disqus