Trunc

From Lazarus wiki
Revision as of 06:56, 11 June 2013 by The1 (talk | contribs) (Created page with "Function '''Trunc''' truncates a real-type value to an Integer-type value. X is a real-type expression. Trunc returns a Longint value that is the value of X rounde...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Function Trunc truncates a real-type value to an Integer-type value. X is a real-type expression. Trunc returns a Longint value that is the value of X rounded toward zero.

Declaration

function Trunc(X: Real): Longint;

See also: