longint

From RAD Studio API Documentation

Bạn đang xem: longint

Jump to: navigation, search

Delphi

type Longint = { built-in type };

C++

typedef int Longint; // -2147483648..2147483647

Properties

Type Visibility Source Unit Parent

Xem thêm: hồ sơ xin việc cần những gì

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:

Xem thêm: tập hợp số nguyên

  • 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, 32-bit macOS, 32-bit iOS, and Android.
  • On 64-bit POSIX platforms (iOS and Linux), LongInt is an 8-byte signed integer with the range [-9223372036854775808 .. 9223372036854775807] (-263 through 263-1).
Note: If you want to lớn use a 4-byte signed integer type, use Integer or FixedInt.

See Also

  • System.Int32
  • System.Int64
  • System.Integer
  • System.FixedInt
  • System.LongWord
  • Internal Data Formats (Delphi)
  • Simple Types (Delphi)