To Documents

VB.Net Datatypes

 

Datatypes in red are new to VB.Net 2005.

CLR Name VB Name Bytes Range
System.Byte Byte 1 0 to 255.
System.SByte SByte 1 -128 to 127.
System.Int16 Short 2 -32,768 to 32,767.
System.Int32 Integer 4 -2,147,483,648 to 2,147,483,647.
System.Int64 Long 8 -9,233,372,036,854,775,808 to
9,233,372,036,854,775,807.
System.UInt16 UShort 2 0 to 65,535.
System.UInt32 UInteger 4 0 to 4,294,967,295.
System.UInt64 ULong 8 0 to 18,446,744,073,709,551,616.
System.Single Single 4 -3.4028235E+38 to 3.4028235E+38
Approximately 7 significant digits.
System.Double Double 8 -1.79769313486231570E+308 to
1.79769313486231570E+308
Approximately 15 significant digits.
System.Object Object 4 Contains a 32 bit address.
System.Char Char 2 Any Unicode character.
System.String String 4 Contains a 32 bit address. The length
of a String object ranges from 0 to
2,147,483,647 Unicode characters.
System.Decimal Decimal 16 128 bit integers scaled by 10e,
where 0 <= e <= 28*.
System.Boolean Boolean 2 True  or   False.

 

*The largest absolute value of a decimal number is 79,228,162,514,264,337,593,543,950,335.
  The smallest nonzero absolute value of a decimal number is 0.0000000000000000000000000001.