L. Primitive Types
Type | Size in bytes | Value range |
---|---|---|
SByte | 1 | –128 to 127, inclusive |
Byte | 1 | 0 to 255, inclusive |
Boolean | 2 | True or False |
Char | 2 | 0 to 65,535, inclusive (representing the Unicode character set) |
Short | 2 | –32,768 to 32,767, inclusive |
UShort | 2 | 0 to 65,535, inclusive |
Integer | 4 | –2,147,483,648 to 2,147,483,647, inclusive |
UInteger | 4 | 0 to 4,294,967,295, inclusive |
Single | 4 | negative range: –3.4028235E+38 to –1.401298E-45 positive range: 1.401298E–45 to 3.4028235E+38 |
Long | 8 | –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807, inclusive |
ULong | 8 | 0 to 18,446,744,073,709,551,615, inclusive |
Double | 8 | negative range: –1.79769313486231570E+308 to –4.94065645841246544E–324 positive range: 4.94065645841246544E–324 to 1.79769313486231570E+308 |
Date | 8 | 0: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.