Math Operators - Radio Shack TRS-80 Preliminary User's Manual

Micro computer system
Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

NEW/N.
ABS
INT
END
MEM/M.
POINT

MATH OPERATORS

+
add (or logical "or")
-
subtract or negation
*
multiply (or logical "and")
divide
/
not equal to
(Not used in a program. Clears out any program
from the Computer's memory. Always use before
loading a new program)
FUNCTIONS
ABS(X)
(returns or determines the absolute value of
ABS(X+Y)
the variable or expression)
INT(X)
(returns or determines the integer value
INT(X+Y)
of variable or expression, ie. "cuts off"
any decimal fraction of that number)
E N D (100)
(returns or generates a random number
between 1 and 100)
END(O)
(returns or generates a random number
between 0 and 1)
END (X)
(returns or generates a random number with
an upper limit equal to the value of X)
(used to display the number of bytes left in
the Computer's memory)
IF ... POINT(X,Y)
coordinate is on or off. If on,returns a 1;
if off, returns a 0)
(used to check if graphics
-
equals
greater than
>
less than
<
less than or equal to
< =
> =
greater than or equal to
P. 23

Advertisement

Table of Contents
loading

This manual is also suitable for:

26-100126-120114-841

Table of Contents