System.Int

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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 Object Pascal code, Int returns the integer part of X; that is, X rounded toward zero. X is a real-type expression.

See Also


Code Examples