An Integer whose size is guaranteed to be 32 bits System unit
type LongInt = -2147483648..2147483647;
The LongInt type is a 32 bit signed Integer. This size is fixed, and will not change in future releases of Delphi. It is currently the same size as the Integer type.
To hold very large signed integers, use the Int64 type.
Related commands
ByteAn integer type supporting values 0 to 255
CardinalThe basic unsigned integer type
Int64A 64 bit sized integer - the largest in Delphi
IntegerThe basic Integer type
LongWordA 32 bit unsigned integer
ShortIntAn integer type supporting values -128 to 127
SmallIntAn Integer type supporting values from -32768 to 32767
WordAn integer type supporting values 0 to 65535
 Download this web site as a Windows program.

Example code : Showing the capacity of LongInt
  min, max : LongInt;
  // Set the minimum and maximum values of this data type
  min := Low(LongInt);
  max := High(LongInt);
  ShowMessage('Min longint value = '+IntToStr(min));
  ShowMessage('Max longint value = '+IntToStr(max));

Show full unit code
  Min longint value = -2147483648
  Max longint value = 2147483647
Delphi Programming © Neil Moffatt . All rights reserved.  |  Home Page