Difference between revisions of "Trunc"

From Lazarus wiki
Jump to navigationJump to search
m
Line 5: Line 5:
  
 
Declaration
 
Declaration
 +
<syntaxhighlight>
 
  function Trunc(X: Real): Longint;
 
  function Trunc(X: Real): Longint;
 +
</syntaxhighlight>
  
 
See also:
 
See also:

Revision as of 16:15, 29 May 2018

English (en) suomi (fi) русский (ru)

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: