System.Longint

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

type Longint = { built-in type };

C++

typedef int                  Longint;          // -2147483648..2147483647

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
type
typedef
public
System.pas
sysmac.h
System System


Beschreibung

Plattformabhängiger Integertyp mit Vorzeichen.

LongInt repräsentiert eine Untermenge der natürlichen Zahlen. Die Größe und der Bereich von LongInt sind von der Zielplattform abhängig:

  • Auf 32-Bit-Plattformen und 64-Bit-Windows-Plattformen ist LongInt eine 4 Byte große vorzeichenbehaftete Ganzzahl im Bereich [-2147483648 .. 2147483647] (-2-31 bis 232-1).
Hinweis: Zu 32-Bit-Plattformen zählen 32-Bit-Windows und -Android.
  • Auf 64-Bit-POSIX-Plattformen (Android, iOS, Linux und macOS) ist LongInt eine 8 Byte große vorzeichenlose Ganzzahl (Integer) im Bereich [-9223372036854775808 .. 9223372036854775807] (-263 bis 263-1).
Hinweis: Verwenden Sie Integer oder FixedInt als 4 Byte großen Integertyp mit Vorzeichen.

Siehe auch