System.Longint

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

type Longint = { built-in type };

C++

typedef int                  Longint;          // -2147483648..2147483647

プロパティ

種類 可視性 ソース ユニット
type
typedef
public
System.pas
sysmac.h
System System


説明

プラットフォーム依存の符号付き整数型です。

LongInt は自然数の部分集合を表します。 LongInt のサイズと範囲はターゲット プラットフォームによって異なります。

  • 32 ビット プラットフォームおよび 64 ビット Windows プラットフォームでは、LongInt は 4 バイトの符号あり整数で、範囲は [-2147483648 ~ 2147483647] (-2-31232-1) です。
メモ: 32 ビット プラットフォームには、32 ビット Windows、32 ビット macOS、32 ビット iOS、Android が含まれます。
  • 64 ビット POSIX プラットフォーム(iOS および Linux)では、LongInt は 8 バイト符号あり整数で、範囲は [-9223372036854775808 ~ 9223372036854775807]-263263-1)です。
メモ: 4 バイトの符号付き整数型が必要な場合は、Integer または FixedInt を使用してください。

関連項目