| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
Truncate a floating point value.
Source position: mathh.inc line 117
function Trunc(  | 
d: ValReal  | 
):Int64;  | 
Trunc returns the integer part of X, which is always smaller than (or equal to) X in absolute value.
None.
  | 
Return fractional part of floating point value.  | 
|
  | 
Calculate integer part of floating point value.  | 
|
  | 
Round floating point value to nearest integer number.  | 
Program Example70; { Program to demonstrate the Trunc function. } begin Writeln (Trunc(123.456)); { Prints 123 } Writeln (Trunc(-123.456)); { Prints -123 } Writeln (Trunc(12.3456)); { Prints 12 } Writeln (Trunc(-12.3456)); { Prints -12 } end.