4D v16

ROUND

Home

 
4D v16
ROUND

ROUND  


 

 

Command ROUNROUND (arithmetic_expression[, arithmetic_expression])

The ROUND function rounds the first arithmetic_expression passed to "x" decimal places (where "x" is the second optional arithmetic_expression passed). If the second arithmetic_expression is not passed, the arithmetic_expression is rounded off to the nearest whole number.

Example  

This example rounds the given number off to two decimal places:

ROUND (1234.1966, 2)
`returns 1234.2000



See also 

TRUNC
TRUNCATE

 
PROPERTIES 

Product: 4D
Theme: Functions

 
HISTORY 

 
ARTICLE USAGE

4D SQL Reference ( 4D v16)