EasyManua.ls Logo

Radio Shack TRS-80 Model III - Page 126

Radio Shack TRS-80 Model III
274 pages
Print Icon
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
enter the
[
operator, press
(£j
.
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
string expression. The
operands
are both strings and the resulting value is one piece of string data.
The
+ operator links the string on
the right of the
sign
to the string on the
left. For example:
PRINT
"CATS" + "LOVE"
+ "MICE"
prints:
CATSLOVEMICE
Since BASIC 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
-1
if the
relation is
true;
a
if
it
is false.
116

Other manuals for Radio Shack TRS-80 Model III

Related product manuals