Development tools : Global functions : Number category : truncate
  
truncate
Description
Returns the truncated value of a number.
Usage
Client side: Y
Server side: Y
Syntax
Integer truncate(Number number).
Argument
number
The number to be calculated. The argument can by any number.
Return
The closest integer less than the number. If the number is empty, on server side, 0 will be returned, on client side, empty will be returned.
Example
truncate(15.6)
returns 15
truncate(-15.6)
returns -16
Go up to
Number category