Difference between revisions of "Int"
From Lazarus wiki
Jump to navigationJump to searchm |
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 | ||
− | + | <syntaxhighlight lang=pascal> | |
+ | function Int(X: Real): Real; | ||
+ | </syntaxhighlight> | ||
See also: | See also: | ||
+ | * [[Frac]] | ||
* [[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: