Visual Basic.Net

Data Type Summary

The following table shows the Visual Basic .NET data types, their supporting common language runtime types, their nominal storage allocation, and their value ranges.

Visual Basic type Nominal storage allocation Value range
Boolean 1 byte True or False.
Byte 1 byte 0 through 255 (unsigned).
Date 8 bytes 0:00:00 on January 1, 0001 through 11:59:59 PM on December 31, 9999.
Decimal 16 bytes 0 through +/-79,228,162,514,264,337,593,543,950,335 with no decimal point;
0 through +/-7.9228162514264337593543950335 with 28 places to the right of the decimal.
Double
(double-precision floating-point)
8 bytes 13 digits of accuracy
Integer 4 bytes -2,147,483,648 through 2,147,483,647.
Long
(long integer)
8 bytes -9,223,372,036,854,775,808 through 9,223,372,036,854,775,807.
Short 2 bytes -32,768 through 32,767.
Single
(single-precision floating-point)
4 bytes 6 digits of accuracy
String
(variable-length)
Depends on implementing platform 0 to approximately 2 billion characters (Alphanumeric/letters/digits)