|
Contents | Previous | Next | Subchapters |
| logical |
-> | char |
-> | int |
-> | real |
-> | double |
-> | complex |
x = 3.1
y = 1i0
print x + y
O-Matrix will respond
(3.1,1)
In the print statement above, O-Matrix converted the left
operand to a complex number before adding.
The value of x, however, is still real.
The rules for converting values to each of the possible types,
are described in the
int
,
char
,
real
,
double
, and
complex
sections.