round(
NUMBER
,
STEP
)

The round( function rounds a number to a specified increment.


Parameters

This function has two parameters:

number – is the number you want to round.

step – is the increment you want to round to. For example if the increment is 1, the value will be rounded to an integer. If the increment is 12, the value will be rounded to the nearest dozen.


Description

This function rounds a number to a specified increment. This example rounds the quantity to the nearest dozen.

round(Quantity,12)

The output of this formula will be 0, 12, 24, 36, etc. The formula above may round the number down, for example 14 will round down to 12. Here is another formula that will always round up to the next higher dozen (i.e. 13 will round up to 24):

round(Quantity+6,12)

Non-integer increments are Ok. This next formula rounds the temperature to the nearest 1/2 degree.

round(Temperature,0.5)

Since dates are really numbers, the formula below rounds the StartDate to the nearest Monday. (The numbers for Mondays are multiples of 7.)

round(StartDate,7)

Note: This function uses the half-even rounding method, which is different from the Round half to even rounding method used by Numeric Patterns.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0