Round
Round is a mathematical function that rounds a number up or down by the specified digits.
Syntax:
Round (arg1,integer)
where arg1 is one or more of the following values:
| Argument | Description |
|---|---|
|
numeric |
A numeric value. For example, Numeric values can include decimals and negative values. See Numeric Arguments. |
|
row, column, or cell reference |
A pointer to a row, column, or cell within a grid. You can specify references in several ways. The reference syntax is: |
|
function |
An embedded function. |
Integer specifies the number of digits to round the number:
-
If
integeris greater than zero, the number is rounded to the specified number of decimal places. -
If
integeris zero, the number is rounded to the nearest integer. -
If
integeris less than zero, the number is rounded to the left of the decimal point.
Examples:
Round to 3 decimals:
Round(3594.5567,3)=3594.557Round to the nearest integer:
Round(3594.5567,0)=3595Round to the thousand, (also known as scaling):
Round(3594.5567,-3)=4000