Data Types Built into VB6

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search

Built in Types

The built in types are:
Byte eight bit, unsigned
Integer 16 bit, signed
Long 32 bit signed
Single 32 bit floating point, range about \pm 10^{38}
Double 64 bit IEEE floating point, range about \pm 10^{308}
Currency exact representation of decimal numbers of up to four decimal places (is this correct)
String dynamically allocated UniCode strings, theorectical capacity about 29 characters.
Collection an associative array of Variants.
Object a holder for any type of Object.
Variant a holder for any type of value or object.


Type Storage Range of Values
Byte 1 byte 0 to 255
Integer 2 bytes -32,768 to 32,767
Long 4 bytes -2,147,483,648 to 2,147,483,647


Type Storage Range of Values
Single 4 bytes -3.402823E+38 to -1.401298E-45 for negative values 1.401298E-45 to 3.402823E+38 for positive values.
Double 8 bytes -1.79769313486232e+308 to -4.94065645841247E-324 for negative values 4.94065645841247E-324 to 1.79769313486232e+308 for positive values.