System.Int
Delphi
function Int(const X: Extended): Extended;
C++
extern DELPHI_PACKAGE Extended __fastcall Int(const Extended X);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.pas System.hpp |
System | System |
Description
Returns the integer part of a real number.
In Delphi code, Int returns the integer part of X; that is, X rounded toward zero. X is a real-type expression.
See Also
Code Examples