These functions are used for the type conversions of the variables.
Name |
Purpose |
Type of arguments |
Return value |
Example |
boolean |
Converts the argument in a boolean value |
INTEGER |
BOOLEAN: false, if 0, else true |
b:=boolean(1); |
char |
Converts the argument in a character |
INTEGER |
CHAR: character according to the ASCII Table |
c:=char(65); |
integer |
Converts the argument in an integer value |
BOOLEAN |
INTEGER: 0 if false, 1 if true |
i:=integer(12.3); |
real |
Converts the argument in a real number |
BOOLEAN |
REAL: 0.0 if false, 1.0 if true |
r:=real(“47.12”); |
string |
Converts the argument in a text |
BOOLEAN |
STRING: “false” / “true” as string |
s:=string(47.12); |
Data types pointing to the objects in the Ebsilon model are described in the chapter Data types.