|
|
| Delphi |
Format |
Range |
Digits |
Size |
C# |
| |
| Integer |
signed 32-bit |
-2147483648..2147483647 |
- |
4 bytes |
int |
| Cardinal |
unsigned 32-bit |
0..4294967295 |
- |
4 bytes |
uint |
| Shortint |
signed 8-bit |
-128..127 |
- |
1 byte |
sbyte |
| Byte |
unsigned 8-bit |
0..255 |
- |
1 byte |
byte |
| Smallint |
signed 16-bit |
-32768..32767 |
- |
2 bytes |
short |
| Word |
unsigned 16-bit |
0..65535 |
- |
2 bytes |
ushort |
| Longint |
signed 32-bit |
-2147483648..2147483647 |
- |
4 bytes |
int |
| Longword |
unsigned 32-bit |
0..4294967295 |
- |
4 bytes |
uint |
| Int64 |
signed 64-bit |
-2^63..2^63-1 |
- |
8 bytes |
long |
| - |
unsigned 64-bit |
0..2^64-1 |
- |
8 bytes |
ulong |
| |
| Boolean |
8-bit boolean |
False..True |
- |
1 byte |
bool |
| ByteBool |
8-bit boolean |
False..True |
- |
1 byte |
| WordBool |
16-bit boolean |
False..True |
- |
2 bytes |
| LongBool |
32-bit boolean |
False..True |
- |
4 bytes |
| |
| Real |
64-bit float |
5.0 x 10^-324 .. 1.7 x 10^308 |
15-16 |
8 bytes |
- |
| Real48 |
48-bit float |
2.9 x 10^-39 .. 1.7 x 10^38 |
11-12 |
6 bytes |
- |
| Single |
32-bit float |
1.5 x 10^-45 .. 3.4 x 10^38 |
7-8 |
4 bytes |
float |
| Double |
64-bit float |
5.0 x 10^-324 .. 1.7 x 10^308 |
15-16 |
8 bytes |
double |
| Extended |
80-bit float |
3.6 x 10^-4951 .. 1.1 x 10^4932 |
19-20 |
10 bytes |
- |
| Comp |
64-bit integer |
-2^63+1 .. 2^63-1 |
19-20 |
8 bytes |
- |
| Currency |
64-bit fixed-point |
-922337203685477.5808..922337203685477.5807 |
19-20 |
8 bytes |
- |
| - |
128-bit fixed point |
±1,0 x 10^-28..±7,9 x 10^28 |
28-29 |
7 bytes |
decimal |
| |
| AnsiChar |
8-bit ANSI char |
#0..#255 |
- |
1 byte |
- |
| WideChar |
16-bit Unicode char |
U+0000..U+FFFF |
- |
2 bytes |
char |
| |
| ShortString |
ANSI char string |
- |
- |
2 to 256 bytes |
- |
| AnsiString |
ANSI char string |
- |
- |
4 bytes to 2GB |
- |
| WideString |
Unicode char string |
- |
- |
4 bytes to 2GB |
string |
|