Date Types
You can declare different types of data in your program. All variables must be declared. The following table shows the different data types for the SPEL+ language.
| Data Type | Size | Range |
|---|---|---|
| Boolean | 2 byte * | True or False |
| Byte | 2 byte * | -128 to +127 |
| Double | 8 bytes | -1.79E+308 to 1.79E+308 Number of significant figure is 14 |
| Int32 | 4 bytes | -2147483648 to +2147483647 |
| Int64 | 8 bytes | -9223372036854775808 to +9223372036854775807 |
| Integer | 2 byte | -32768 to +32767 |
| Long | 4 bytes | -2147483648 to +2147483647 |
| Real | 4 bytes | -3.40E+38 to 3.40E+38 Number of significant figure is 6 |
| Short | 2 bytes | -32768 to +32767 |
| String | 256 bytes | All ASCII characters Up to 255 characters |
| UByte | 2 bytes * | 0 to +255 |
| UInt32 | 4 bytes | 0 to 4294967295 |
| UInt64 | 8 bytes | 0 to 18446744073709551615 |
| UShort | 2 bytes | 0 to 65535 |
*: The internal allocation size. See "range" for actual available values.
For details on internal allocation size, refer to the following manual.
"SPEL+ Language Reference - Declare"