Every variable and value has an associated data type that determines what can it can contain.
- BOOLEAN - Boolean values can be one of two states, True and False, represented by the constants “true” and “false” .
- BYTE - Byte values are whole numbers -128 to 127
- SHORT - Short values are whole numbers in the range -32768 to 32767
- INTEGER - Integer values are whole numbers in the range -2147483648 to 2147483647
- LONG - Long values are whole numbers in the range -9223372036854775808 to 9223372036854775807.
- FLOAT - Float values are numbers that contain a decimal point. A float has 7 significant figures and can have approximately 38 places before or after the decimal point.
- DOUBLE - Double values are similar to Float values except they can store values to a higher degree of accuracy. A double has 15 significant figures and can have approximately 300 places before or after the decimal point.
- COMPLEX - Complex values are values that have a real and an imaginary part. Internally the real and imaginary parts are both stored as doubles.
- STRING - String values hold a sequence of characters such as "Hello"
- VARIANT - Variant values is a special type that can hold different types of data at different times. In most cases you should use one of the other types but it can be useful to make functions that can process different types of data. See the main description of the VARIANT for an example.