4D v14

TRUNC

Home

 
4D v14
TRUNC

TRUNC  


 

 

Command TRUNC

TRUNC (arithmetic_expression[, arithmetic_expression])

The TRUNC function returns the first arithmetic_expression truncated to "x" places to the right of the decimal point, where "x" is the second optional arithmetic_expression. If this second arithmetic_expression is not passed, the arithmetic_expression is simply truncated by removing any decimal places.

Example  

This function truncates the number passed to 1 place after the decimal point:

TRUNC(2.42 , 1)
`returns 2.40

 
PROPERTIES 

Product: 4D
Theme: Functions

 
SEE ALSO 

ROUND
TRUNCATE

 
ARTICLE USAGE

4D SQL Reference ( 4D v11 SQL Release 4 )
4D SQL Reference ( 4D v14)
4D SQL Reference ( 4D v12.1)
4D SQL Reference ( 4D v13.4)
4D SQL Reference ( 4D v14 R2)
4D SQL Reference ( 4D v14 R3)
4D SQL Reference ( 4D v14 R4)