L. Primitive Types

Figure L.1. Primitive types.
TypeSize in bytesValue range
SByte1–128 to 127, inclusive
Byte10 to 255, inclusive
Boolean2True or False
Char20 to 65,535, inclusive (representing the Unicode character set)
Short2–32,768 to 32,767, inclusive
UShort20 to 65,535, inclusive
Integer4–2,147,483,648 to 2,147,483,647, inclusive
UInteger40 to 4,294,967,295, inclusive
Single4negative range: –3.4028235E+38 to –1.401298E-45 positive range: 1.401298E–45 to 3.4028235E+38
Long8–9,223,372,036,854,775,808 to 9,223,372,036,854,775,807, inclusive
ULong80 to 18,446,744,073,709,551,615, inclusive
Double8negative range: –1.79769313486231570E+308 to –4.94065645841246544E–324 positive range: 4.94065645841246544E–324 to 1.79769313486231570E+308
Date80:00:00 on 1 January ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.