System.Longint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

type Longint = { built-in type };

C++

typedef int                  Longint;          // -2147483648..2147483647

Properties

Type Visibility Source Unit Parent
type
typedef
public
System.pas
sysmac.h
System System

Description

Platform-dependent signed integer type.

LongInt represents a subset of the natural numbers. LongInt size and range depend on the target platform:

  • On 32-bit platforms and 64-bit Windows platforms, LongInt is an 4-byte signed integer with the range [-2147483648 .. 2147483647]. (-2-31 through 232-1).
Note: 32-bit platforms include 32-bit Windows and Android.
  • On 64-bit POSIX platforms (Android, iOS, Linux, and macOS), LongInt is an 8-byte signed integer with the range [-9223372036854775808 .. 9223372036854775807] (-263 through 263-1).
Note: If you want to use a 4-byte signed integer type, use Integer or FixedInt.

See Also