Home > Expression Operators > Arithmetic Operators > #ROUND

#ROUND

Rounds a number to the specified number of decimal places, or, if unspecified, to the nearest integer.

Syntax:

Number1 #ROUND number2

Examples:

2 #ROUND 123.456 equals 123.46

#ROUND 123.456 equals 123

-1 #ROUND 123.456 equals 120

#ROUND –123.456 equals –123

#ROUND 123.666 equals 124

Related Operators:

#CEILING

#FLOOR

#INT