Value Range

Boolean

2 bytes

True or False

Byte

1 byte

0 to 255 (unsigned)

Char

2 bytes

0 to 65535 (unsigned)

Date

8 bytes

January 1, 1 CE to December 31, 9999

Decimal

16 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

Double

8 bytes

1.79769313486231E308 to -4.94065645841247E-324 for negative values; 4.94065645841247E-324 to 1.79769313486232E308 for positive values

Integer

4 bytes

-2,147,483,648 to 2,147,483,647

Long

8 bytes

-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

Short

2 bytes

-32,768 to 32,767

Single

4 bytes

-3.4028235E38 to -1.401298E-45 for negative values;1.401298E-45 to 3.4028235E38 for positive values

4028235e38

Ch4 UsingVarDataTypes Microsoft Visual Basic.NET [run] Modulel.vb [Read Only]

File Edit View Project Build Debug lools Window Help

0 Type any other necessary variables.

-Q Type code to use the variables.

Ch4 UsingVarDataTypes Microsoft Visual Basic.NET [run] Modulel.vb [Read Only]

File Edit View Project Build Debug lools Window Help

■JC:\Documents and Settings''. Administrator'1.My Documents\Visual Studio Projects\Ch4-UsingVarDataT... ^JwT True

7/4/2001 12:00:00 AM

0 Type any other necessary variables.

■ You can type a comma to start the declaration of a new variable on the same line.

3 Call Stack I -J'M Breakpoin... ~1 Command... □ Outp

-Q Type code to use the variables.

Note: See the section "Create a Console Application" to use variables for input and output. See the next section, "Work with Operators," to compare and manipulate variables.

■ The variables store data and the output statements use the various types.

0 0

Post a comment