TRS-80 MODEL III
HowBASIC Manipulates Data
You have many fast methods you may use to get BASIC to count, sort, test and
rearrange yourdata. These methods fall into two categories:
1.
Operators
a. numeric
b.
string
c.
relational
d. logical
2.
Functions
Operators
An operator
is
the single symbol
or
word which signifies some action to be taken on
eitherone
ortwo
specified values referred to as operands.
In general, an operatoris used like this:
~ffan~l~erowr~erond~
operand-l
and
-2
can be expressions. A few operations take only one operand,
and are used like this:
operator
operand
Examples:
6+2
The
addition operator + connects
or
relates its two operands, 6 and 2, to produce
the result 8.
-5
The
negation operator - acts
on
a single operand 5 to produce the result negative
5.
Neither 6 + 2
or
- 5 can stand alone; they must be used in statements to be
meaningful to
BASIC.
For
example:
A=6+2
PRINT
-5
1/18