类型
数值范围
占字节数
格式
shortint -128(-2^7) ~ 127(2^7-1) 1 带符号8位
byte 0 ~ 255(2^8-1) 1 无符号8位
smallint -32768(-2^15) ~ 32767(2^15-1) 2 带符号16位
word 0 ~ 65535(2^16-1) 2 无符号16位
integer smallint或longint 2或4 带符号16/32位
cardinal longword 4 无符号32位
longint -2147483648(-2^31) ~ 2147483647(2^31-1) 4 带符号32位
longword 0 ~ 4294967295(2^32-1) 4 无符号32位
int64 -9223372036854775808(-2^63) ~ 9223372036854775807(2^63-1) 8 带符号64位
qword 0 ~ 18446744073709551615(2^64-1) 8 无符号64位
shortint -128(-2^7) ~ 127(2^7-1) 1 带符号8位
byte 0 ~ 255(2^8-1) 1 无符号8位
smallint -32768(-2^15) ~ 32767(2^15-1) 2 带符号16位
word 0 ~ 65535(2^16-1) 2 无符号16位
integer smallint或longint 2或4 带符号16/32位
cardinal longword 4 无符号32位
longint -2147483648(-2^31) ~ 2147483647(2^31-1) 4 带符号32位
longword 0 ~ 4294967295(2^32-1) 4 无符号32位
int64 -9223372036854775808(-2^63) ~ 9223372036854775807(2^63-1) 8 带符号64位
qword 0 ~ 18446744073709551615(2^64-1) 8 无符号64位