ROUND Function (VisioShapeSheet)

Rounds a number to the precision represented by numberofdigits.

Syntax

ROUND(number, numberofdigits )

Parameters

Name Required/Optional Data Type Description
number
Required
Number
The number to round off.
numberofdigits
Required
Number
The number of decimal places of precision.

Remarks

If numberofdigits is greater than 0, number is rounded by numberofdigits to the right of the decimal. If numberofdigits is 0, number is rounded to an integer. If numberofdigits is less than 0, number is rounded by numberofdigits to the left of the decimal.

Example 1

ROUND(123.654,2)

Returns 123.65.

Example 2

ROUND(123.654,0)

Returns 124.

Example 3

ROUND(123.654,-1)

Returns 120.