Difference between revisions of "Int"

From Lazarus wiki
Jump to navigationJump to search
m
m (Fixed syntax highlighting; deleted category included in page template)
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Int}}
 +
 
Function '''Int''' returns the integer part of the argument. X is a [[Real|real]]-type expression. The result is the integer part of X, rounded toward zero.
 
Function '''Int''' returns the integer part of the argument. X is a [[Real|real]]-type expression. The result is the integer part of X, rounded toward zero.
  
 
Declaration
 
Declaration
function Int(X: Real): Real;
+
<syntaxhighlight lang=pascal>
 +
function Int(X: Real): Real;
 +
</syntaxhighlight>
  
 
See also:
 
See also:
 +
* [[Frac]]
 
* [[Round]]
 
* [[Round]]
 
* [[Trunc]]
 
* [[Trunc]]
 
[[Category:Pascal]]
 

Revision as of 05:56, 16 February 2020

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

Function Int returns the integer part of the argument. X is a real-type expression. The result is the integer part of X, rounded toward zero.

Declaration

function Int(X: Real): Real;

See also: