ROUND

Description

ROUND rounds the given number to the supplied number of decimal places.

Syntax

ROUND ( number, precision )

 

Parameter

Description

number

Any value.

precision

Indicates the number of decimals to round to.

If a negative precision is used, the digits to the left of the decimal point are dropped and replaced by zeros.

If precision is 0, number is rounded to the nearest integer.

Example

This function returns 123.46:

ROUND(123.456, 2)

This function returns 9900:

ROUND(9899.435, -2)

 Note:

If an Invalid formula syntax warning appears, check whether the comma is set as the list separator in your regional settings on the Windows Control Panel. If a different character is set as the list separator, use this character in the above examples in place of the comma. (Windows XP: Access the Windows Control Panel and select Regional and Language Options. On the Regional Options tab page, click Customize. On the Numbers tab page, check which character is the default list separator on your computer. Use this character in the above examples instead of the comma.

Also, see

CEILING

FLOOR

INT

MOD

ROUNDDOWN

ROUNDUP

TRUNC