Difference between revisions of "Trunc"

From Lazarus wiki
Jump to navigationJump to search
m
m (frac)
Line 8: Line 8:
 
* [[Int]]
 
* [[Int]]
 
* [[Round]]
 
* [[Round]]
 +
* [[Frac]]
  
 
[[Category:Pascal]]
 
[[Category:Pascal]]

Revision as of 11:00, 20 August 2016

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: