EasyManua.ls Logo

Radio Shack TRS-80 Model 3 - Page 126

Radio Shack TRS-80 Model 3
276 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TRS-80 MODEL III
Exponentiation
The
symbol
[denotes
exponentiation.
It
converts both its operands to
single-precision, and returns a single-precision result.
Note:
To
enterthe [ operator, press (]).
For
example:
PRINT6[
.3
prints 6 to the
.3
power.
String
Operator
BASIC has a string operator( +)which allows you to concatenate (link) two
strings into one. This operator should be used as part
of
a stringexpression.
The
operands are both strings
and
the resulting value is one piece
of
string data.
The
+ operatorlinks the string on the right
of
the sign to the string on the
left.
For
example:
PRINT "CATS" + "LOVE" + "MICE"
prints:
CATSLOVEMICE
SinceBASIC does not allow one string to be longer than 255 characters, you will
get an error
if
your
resulting string is too long.
Relational Operators
Relational operators compare
two
numerical
or
two string expressions to form a
relational expression. This expression reports whether the comparison you set up
in your
program
is true
or
false. It will return
a-I
if
the relation is true; a 0
if
it
is false.
1/22

Related product manuals