Truncates a real-type value to an Integer-type value.
function Trunc(X: Real): Longint;
Windows, Real, Protected
X is a real-type expression. Trunc returns a Longint value that is the value of X rounded toward zero.
A run-time error occurs if the truncated value of X is not within the Longint range.