Canon Cat Reference Manual page 78

Hide thumbs Also See for Cat:
Table of Contents

Advertisement

Operators
Operators
are
the verbs
of
a
mathematical
statement.
For
example, the operator
+
means
add,
md
the operator
-
means
subtract.
The Cat
has
14
operators, shown
below:
Operator
Meaning
add
subtract
multiply
divide
absolute
value
integer
part
percent
(multiply
by .01)
square
root
less than
greater than
equal
logical
NOT
logical
AND
logical OR
"
a b s
i n t
s q
Expressions and Operators
Operators
combine
with
constants
and variables to
form
mathematical
s0atements
called
expre
s
sions.
Constants
are
fixed numeric
values such
as
"1.38"
and
"-
U7".
Do not
use
permanent
spaces
(the
uppercase
char-
acter
on
[TAB])
in
expressions or
variables.
In
addition to
the
familiar
operators
for
addition,
subtrac-
tion, multipication,
percent,
and
division,
the
Cat can
find
the
absolute value, integer part,
and square
root.
It
also
has
logical
operators
used
to
control
the
evaluation
ofexpres-
sions. The
tablebelow
summarizes how operators
are
used
to
crcate expressions.
+
Addthe
values
to
the
left
and
right of
the
+

Advertisement

Table of Contents
loading

Table of Contents