Except for
Easel
the valid range for numbers
in
the OL programs
is:
±
2.9*10
39
to ± 1.7*10
38
All calculations are accurate
to
sixteen significant digits but only a maximum
of
fourteen
characters can be displayed.
In
easel the range
of
valid numbers
is
± 1.0-
35
to
±
1.0
x
10.
36
The following arithmetic operators
are
provided
In
Abacus, Archive and
Easel:
QL
PROGRAM
ARITHMETIC
Operator Function
+
>
<
<~
>=
<>
Addition on numbers or
concatenation
on
strings
Subtraction
Multiplication
Division
Raise
to
a power
Equal
Greater than
Lesser than
Lesser than or equal
to
Greater than or equal
to
Not equal
to
There
is
no automatic coercion between data types.
Therefore,
operands must be
of
the same
type.
The
result
is
always
a numbe( 1
if
the comparison
is
true and 0
if it
is
false.
Functions and operators have the following precedence:
Operation
Precedence
<>
or
Unary minus
*,
/
Subscripting and slicing
12
All
functions
11
10
9
8
6
5
4
3
2
+,-
=,>,<,<=,>=,
not
and
12/84
11