Delphi变量类型

delphi整形变量类型有以下几种

Type    Range     Format
Shortint     -128..127     signed 8-bit
Smallint     -32768..32767     signed 16-bit
Longint     -2147483648..2147483647     signed 32-bit
Int64     -2^63..2^63-1     signed 64-bit
Byte     0..255     unsigned 8-bit
Word     0..65535     unsigned 16-bit
Longword     0..4294967295     unsigned 32-bit

nteger     -2147483648..2147483647     signed 32-bit
Cardinal     0..4294967295 unsigned 32-bit

 

delphi浮点型变量类型有以下几种

 

Type Range Significant digits Size in bytes
Real48 2.9 x 10^-39 .. 1.7 x 10^38 11-12 6
Single 1.5 x 10^-45 .. 3.4 x 10^38 7-8 4
Double 5.0 x 10^-324 .. 1.7 x 10^308 15-16 8
Extended 3.6 x 10^-4951 .. 1.1 x 10^4932 19-20 10
Comp -2^63+1 .. 2^63 -1 19-20 8
Currency -922337203685477.5808.. 922337203685477.5807 19-20 8
Real 5.0 x 10^-324 .. 1.7 x 10^308 15-16 8

 

delphi字符变量类型有以下几种

char、AnsiChar、WideChar、String、AnsiString、WideString、ShortString

 

 

 

你可能感兴趣的:(Delphi,delphi,string,2010)