This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19
ROUND
|
ROUND ( value , places ) | ||||||||
Parameter | Type | Description | ||||||
value | Number |
![]() |
Number to round | |||||
places | Number |
![]() |
Number of decimal places | |||||
The ROUND function rounds the specified value to the nearest number, using the specified number of decimal places.
Use the value parameter to specify the number to round. You can pass any numeric data (or cell reference containing numeric data).
Note: The result may be rounded up or rounded down.
Use the places parameter to specify the number of decimal places. The places argument has these rules:
ROUND(A3,-2)
ROUND(C4,B2)
ROUND(PI(),5) //3.14159
ROUND(29.2,-2) //0 because 29.2 is closer to 0 than to 100.
ROUND(-1.963,0) //-2
Product: 4D
Theme: 4D View Pro Formulas
4D View Pro Reference ( 4D v19)