This table it primarily for ASP.Net. Some minor differences are found
if using C or VB.
Data Type Prefix |
.NET Data Type |
Min Value |
Max Value |
Num Bytes |
sbyte |
System.Sbyte |
-128 |
127 |
1 |
byte |
System.Byte |
0 |
255 |
1 |
short |
System.Int16 |
-32,768 |
32,767 |
2 |
ushort |
System.UInt16 |
0 |
65,535 |
2 |
int |
System.Int32 |
-2,147,483,648 |
2,147,483,647 |
4 |
uint |
System.UInt32 |
0 |
4,294,967,295 |
4 |
long |
System.Int64 |
-9,223,372,036,854,770,000 |
9,223,372,036,854,770,000 |
8 |
ulong |
System.UInt64 |
0 |
18,446,744,073,709,500,000 |
8 |
char |
System.Char |
0 |
65,535 |
2 |
String |
System.String |
|
2 billion chars |
10+(2*length) |
float |
System.Single |
-3.4 x 10-38 |
3.4 x 10 38 |
4 |
double |
System.Double |
-1.7 x 10-308 |
1.7 x 10-308 |
8 |
bool |
System.Boolean |
False (0) |
True (1) (not zero is true) |
4 !!!! |
decimal |
System.Decimal |
-7.9 x 10-28 |
7.9 x 10-28 |
16 |
Date |
|
|
|
8 |
If you see anything wrong with this table, please let me know: 
|