
6. The SPEL+ Language
6.5 Data 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
Integer 2 bytes
−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
String 256 bytes All ASCII characters Up to 255 characters
6.6 Operators
The following table shows the different operators for the SPEL
+
language.
Keyword or Symbol Description
+ Addition
−
Subtraction
* Multiplication
/ Division
** Exponentiation
= Equal
> Greater than
< Less than
>= Greater or equal
<= Less or equal
<> Not equal
And Performs logical and bitwise AND operation.
Mod Returns the remainder obtained by dividing a numeric
expression by another numeric expression.
Not Performs logical or bitwise negation of the operand.
Or Performs the bitwise Or operation on the values of the operands.
Xor
Performs the bitwise Xor operation on the values of the
operands.
EPSON RC+ 5.0 (Ver.5.4) User's Guide Rev.4 153
Kommentare zu diesen Handbüchern