Post Number: #4
by Jessica » January 29th, 2013, 9:45 pm
Common Data Types Defined
These are the most commonly used data types.
Integer: the most commonly used data type. It can only store whole number integers within the range -32,768 to 32,767.
Long: same as Integer, but with a range of -2,147,483,648 to 2,147,483,647. For most practical uses Integer will do just fine, and there is no need for using Long, however there are some cases when the range of Integer just won't cut it.
String: the second most commonly used data type. It stores a "String" of characters. In Visual Basic, a string is contained within quotes "".
Single: represents a floating point number, or in other words a number with a decimal. It has a range of -3.402823e38 to -1.401298e-45 for negative numbers, and 1.401298e-45 to 3.402823e38 for positive numbers.
Double: same as Single except with a range of -1.79769313486232e308 to -4.94065645841247e-324 for negative numbers, and a range of 4.94065645841274e-324 to 1.79769313486232e308 for positive numbers. Double like Long is just a bigger variable type, in most instances there is no need for the precision that the double types can support, but in some cases it may be necessary.
Boolean: represents either True or False
Dragon Cave : 