Data Types



String variables are stored as sequences of unsigned 16-bit (2-byte) numbers ranging in value from 0 through 65535. Each number represents a single Unicode character. A string can contain up to approximately 2 billion (2 ^ 31) Unicode characters.


Integer variables are stored as signed 32-bit (4-byte) integers ranging in value from -2,147,483,648 through 2,147,483,647.

The Integer data type provides optimal performance on a 32-bit processor, as the smaller integral types are slower to load and store from and to memory.

You can convert the Integer data type to Long, Single, Double, or Decimal without encountering a System.OverflowException error.


he float type is stored as a four-byte, single-precision, floating-point number. It represents a single-precision 32-bit IEEE 754 value.

The float type can represent numbers as large as 3.4E+38 (positive or negative) with an accuracy of about seven digits, and as small as 1E-44. The float type can also represent NaN (Not a Number), positive and negative infinity, and positive and negative zero.