Vector Basic Interpreter Basic 80 Reference Manual - page 21
1.8.1.2
Overflow And Division
!I
Zero -
If, during the evaluation of an exp-riSsion, a
division
by
zero is encountered, the "Division by zero" error message is
displayed, machine infinity with the sign of
the
numerator
is
supplied
as
the
result of the division, and execution
continues.
If the evaluation of an
exponentiation
results
in
zero
being raised to a negative power, the "Division by
zero" error message is displayed, positive machine
infinity
is
·supplied
as
the
result
of
the
exponentiation,
and
execution continues.
If
overflow
occurs,
the
"Overflow"
error
message
is
displayed,
machine
infinity with the algebraically
correct
sign is supplied as the result, and execution continues.
1.8.2
Relational Operators
Relational operators are used to compare
two
values.
The
result
of
the
comparison is either "true" (-1) or "false"
(0).
This result may then used to make a decision regarding
program flow.
(See IF, Section 2.26.)
Operator
Relation Tested
Expression
"
-
Equality
X-Y
<>
Inequality
x<>y
<
Less than
X > Greater than x>y <- Less 'thanor equal to x<=y >- Greater than or equal to x>-y (The equal sign is also used to assign a value to a variable. See LET, Section 2.30.) When arithmetic and relational operators are combined in one expression, the arithmetic is always performed first. 'For example, the expression is uue if the value of X plus Y is less than the value of T-1 divided by Z. More examples: IF SIN(X) IF I MOO J <> 0 THEN K=K+1