EasyManua.ls Logo

Radio Shack TRS-80 Model III - Character Codes

Radio Shack TRS-80 Model III
274 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...
APPENDIX
Arithmetic
Functions*
Function
Operation
(unless noted
otherwise,
-1.7E
+
38<
=
«p<
=
1.7E
+
38)
ABS(exp)
Returns
absolute value.
ATN(exp)
Returns
arctangent in radians
.
CDBL(exp)
Returns
double-precision
representa-
tion
of exp.
Cim(exp)
Returns
largest integer
not greater
than
exp. Limits:
-3276&<
=
exp<
+ 32768.
COS(exp)
Returns
the cosine
of exp; assumes
exp is in radians
.
CSNG(exp)
Returns
single-precision
representation,
with
5/4 rounding
in least significant
decimal when
exp is
double-precision.
EXP(exp)
Returns
the natural
exponential
,
e
exp
=
EXP(exp).
FlX(exp)
Returns
the integer
equivalent to
truncated exp (fractional
part of
exp
is
chopped off).
INT(exp)
Returns largest
integer not greater
than exp
.
LOG(exp)
Returns natural
logarithm (base
e)
of
exp.
Limits:
exp must
be positive.
RND(O)
Returns
a pseudo-random
number
bet
ween
. 00000
1
and
.
999999
inclusive.
RND(exp)
Returns
a pseudo-random
number
between
1 and INT(exp) inclusive.
Limits:
K
=
exp<32768.
Examples Fagt
ABS(L*.7)
ABS(SIN(X))
179
ATN(2.7)
ATN(A*3)
179
CDBL(A)
CDBL(A+1/3#)
180
C!NT(A# + B)
180
COS(2*A)
COS(A/57.29578)
180
CSNG(A#)
CSNG(.33*B#)
180
EXP(34.5)
EXP(A*B*C-1)
FIX(A-B)
181
181
INT(A + B*C)
181
LOG(12.33)
LOG(A
B + B)
181
182
Returns
1 for negative
exp; for
zero exp; + 1 for positive
exp
.
SGN(exp)
*exp is any
numeric-
valued expression or
constant
RND(0)
RND(40)
RND(A + B)
SGN(A*B +
3)
SGN(COS(X))
182
182
217

Other manuals for Radio Shack TRS-80 Model III

Related product manuals