ABS

CHAPTER 7

FUNCTIONS

The ABS function returns the absolute value
of
the specified expression. The
absolute value
of
an
expression
is
its numeric value with a positive sign.
ABS(expression)
10
INPUT A
20
A = ABS(A *2)
30
PRINT A
40
END
RUN
?5
10
Ok
RUN
?
-5
10
Ok
Ase
The ASC function returns the ASCII code
of
the first character
of
the specified
string.
ASC(string
expression)
PRINT ASC
("0"),
ASC("AB")
48
65

ATN

The ATN function returns the arctangent value
of
the specified expression. The
result, given in radians,
is
between
-PI/2
and
PI/2.
The calculation
is
performed in
single precision,
but
the argument may be any numeric type.
ATN(expression)
10
INPUT A
20
B = ATN(A)
30
PRINT B
40
END
RUN
?5
1.373401
Ok
7-1