EasyManua.ls Logo

Radio Shack TRS-80 Model 3 - Page 227

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...
APPENDIX
ArithmeticFunctions*
Section 2
Function
Operation
(unless noted otherwise, Examples
Page
-1.7E+38<
=exp<
=
1.7E+38)
ABS(exp) Returns absolute value.
ABS(L*.7)
711
ABS(SIN(X))
ATN(exp)
Returns arctangent in radians.
ATN(2.7)
711
ATN(A*3)
CDBL(exp) Returns double-precision representa-
CDBL(A)
712
tionof
expo
CDBL(A + 1/3#)
CINT(exp) Returns largest integernot greater
CINT(A#+B)
7/2
than
expo
Limits:
- 32768< =
exp<
+32768.
COS(exp) Returns the cosine
of
exp; assumes COS(2*A)
7/2
exp is in radians.
COS(A/57.29578)
CSNG(exp) Returns single-precision representation, CSNG(A#)
7/2
with 5/4 rounding in least significant CSNG(.33*B#)
decimal when exp is double-precision.
EXP(exp) Returns the natural exponential, EXP(34.5)
7/3
eexp =
EXP(
exp
).
EXP(A*B*C - 1)
FIX(exp)
Returns the integerequivalent to
FIX(A-B)
7/3
truncatedexp (fractional part
of
exp
is choppedoff).
INT(exp)
Returns largest integernot greater INT(A+B*C)
7/3
thanexp.
LOG(exp)
Returns natural logarithm (base e) LOG(12.33)
7/3
of
expo
Limits: exp must be positive.
LOG(A
B+B)
RND(O)
Returns a pseudo-random number
RND(O)
7/4
between
O.
000001and 0.999999
inclusive.
RND(exp)
Returns a pseudo-random number
RND(40)
7/4
between 1and INT(exp) inclusive.
RND(A+B)
Limits: 1< =
exp<32768.
SGN(exp)
Returns - 1for negativeexp; afor SGN(A*B+3)
7/4
zero exp; + 1for positive
expo
SGN(COS(X))
*exp
is any numeric-valued expression
or
constant.
A/13

Related product manuals