Difference between revisions of "Trunc"

From Lazarus wiki
Jump to navigationJump to search
m
Line 10: Line 10:
  
 
See also:
 
See also:
 +
* [[Frac]]
 
* [[Int]]
 
* [[Int]]
 
* [[Round]]
 
* [[Round]]
* [[Frac]]
 
  
 
[[Category:Pascal]]
 
[[Category:Pascal]]

Revision as of 11:17, 18 August 2019

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: