Darwin Help

Back to Index

trunc

Function trunc


Calling Sequence  trunc(x)
Parameters
NameTypeDescription

x numeric 
Return Type  integer
Synopsis Returns the integer portion of the argument x.
Examples
> trunc(9.9999999);
9
> trunc(-9.99999);
-9
See also ceil,   floor,   mod,   round