trunc

HC Arithmetic Type Converters trunc
truncate Signum

truncate num
trunc num


outputs the biggest integer absolutly smaller than num.

Examples:

trunc 1.2		;1  ;-)
trunc -1.2		;-1  ;-)
trunc 1.9		;1  ;-)
trunc -1.9		;-1  ;-)
trunc [1.2 -1.2 1.9 -1.9]		;[1 -1 1 -1] ;-)

Example:

References:

truncate Signum