User`s manual

A-13
Arithmetic Functions*
Function
Operation (unless noted otherwise,
-1.7E+38<=
exp
< =1.7E+38) Examples Page
ABS
(exp)
Returns absolute value.
ABS(L*.7)
ABS(SIN(X))
7/1
ATN
(exp)
Returns arctangent in radians.
ATN(2.7)
ATN(A*3)
7/1
CDBL
(exp)
Returns double-precision
representation of
exp
.
CDBL(A)
CDBL(A+1/3#)
7/2
CINT
(exp)
Returns largest integer not greater
than
exp
. Limits:
-32768 <=
exp
<+32768.
CINT(A#+B)
7/2
COS
(exp)
Returns the cosine of
exp
; assumes
exp
is in radians.
COS(2*A)
COS(A/57.29578)
7/2
CSNG
(exp)
Returns single-precision
representation, with 5/4 rounding in
least significant decimal when
exp
is
double-precision.
CSNG(A#)
CSNG(.33*B#)
7/2
EXP
(exp)
Returns the natural exponential,
e
exp
=EXP(
exp
).
EXP(34.5)
EXP(A*B*C-1)
7/3
FIX
(exp)
Returns the integer equivalent to
truncated
exp
(fractional part of
exp
is
chopped off).
FIX(A-B)
7/3
INT
(exp)
Returns largest integer not greater
than
exp
.
INT(A+B*C)
7/3
LOG
(exp)
Returns natural logarithm (base e) of
exp
. Limits:
exp
must be positive.
LOG(12.33)
LOG(A* B+B)
7/3
RND(0) Returns a pseudo-random number
between 0.000001 and 0.999999
inclusive.
RND(0)
7/4
RND
(exp)
Returns a pseudo-random number
between 1 and INT(
exp
) inclusive.
Limits: 1 <=
exp
32768.
RND(40)
RND(A+B)
7/4
*exp
is any numeric-valued expression or constant.