ROUND

Description

Rounds the given number to the supplied number of decimal places.

Syntax

ROUND ( number, precision )

Parameter Description
number Any real number you want to round.
precision The number of decimal places to which number is rounded.

If precision is negative, the digits to the right of the decimal point are dropped and the absolute number of significant digits specified by precision are replaced with zeros.

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

Examples

This function returns 123.46:

ROUND(123.456, 2)

This function returns 9900:

ROUND(9899.435, -2)

See also

CEILING

FLOOR

INT

MOD

ROUNDDOWN

ROUNDUP

TRUNC