4.1 2.2.variable Types PDF
4.1 2.2.variable Types PDF
Types
Data type Storage Range
size
Byte 1 byte 0 to 255
Boolean 2 bytes True or False
Integer 2 bytes -32,768 to 32,767
Long 4 bytes -2,147,483,648 to 2,147,483,647
(long integer)
Single 4 bytes -3.402823E38 to -1.401298E-45 for
(single- negative values; 1.401298E-45 to
precision 3.402823E38 for positive values
floating-
point)
Double 8 bytes -1.79769313486231E308 to
(double- -4.94065645841247E-324 for negative
precision values; 4.94065645841247E-324 to
floating- 1.79769313486232E308 for positive values
point)
Currency 8 bytes -922,337,203,685,477.5808 to
(scaled 922,337,203,685,477.5807
integer)
Decimal 14 bytes +/-
79,228,162,514,264,337,593,543,950,335
with no decimal point;
+/-7.9228162514264337593543950335
with 28 places to the right of the decimal;
smallest non-zero number is
+/-0.0000000000000000000000000001
Date 8 bytes January 1, 100 to December 31, 9999
String 10 bytes + 0 to approximately 2 billion
(variable- string
length) length
String Length of 1 to approximately 65,400
(fixed-length) string