Appendix L. Primitive Types


L. Primitive Types

Figure L.1. 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.401298E45 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.94065645841246544E324

positive range: 4.94065645841246544E324 to 1.79769313486231570E+308

Date

8

0:00:00 on 1 January 0001 to 23:59:59 on 31 December 9999

Decimal

16

Range with no decimal point: ±79,228,162,514,264,337,593,543,950,335

Range with 28 places to the right of the decimal point: ±7.9228162514264337593543950335

The smallest nonzero number is ±0.0000000000000000000000000001 (±1E28)

String

Depends on platform

up to approximately 2 billion Unicode characters




Visual BasicR 2005 for Programmers. DeitelR Developer Series
Visual Basic 2005 for Programmers (2nd Edition)
ISBN: 013225140X
EAN: 2147483647
Year: 2004
Pages: 435

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net