Difference between revisions of "Int"
From Free Pascal wiki
Jump to navigationJump to searchm (Fixed syntax highlighting; deleted category included in page template) |
|||
Line 4: | Line 4: | ||
Declaration | Declaration | ||
− | <syntaxhighlight> | + | <syntaxhighlight lang=pascal> |
function Int(X: Real): Real; | function Int(X: Real): Real; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 12: | Line 12: | ||
* [[Round]] | * [[Round]] | ||
* [[Trunc]] | * [[Trunc]] | ||
− | |||
− |
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: