Difference between revisions of "Data Types Built into VB6"
From Free Knowledge Base- The DUCK Project: information for everyone
(New page: 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 abo...) |
m |
||
Line 1: | Line 1: | ||
Built in Types | Built in Types | ||
− | {| | + | {| border=1 cellspacing=0 |
− | |+ | + | |+ '''The built in types are:''' |
− | + | ||
|- | |- | ||
| Byte | | Byte | ||
Line 37: | Line 36: | ||
− | Type Storage Range of Values | + | {| |
− | + | |- | |
− | Byte 1 byte 0 to 255 | + | | Type |
− | Integer 2 bytes -32,768 to 32,767 | + | | Storage |
− | Long 4 bytes -2,147,483,648 to 2,147,483,647 | + | | 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 | + | |- |
− | + | | Type | |
− | Single 4 bytes -3.402823E+38 to -1.401298E-45 for negative values 1.401298E-45 to 3.402823E+38 for positive values. | + | | Storage |
− | Double 8 bytes -1.79769313486232e+308 to -4.94065645841247E-324 for negative values 4.94065645841247E-324 to 1.79769313486232e+308 for positive values. | + | | 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. | ||
+ | |} |
Revision as of 09:22, 3 June 2007
Built in Types
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. |