BASIC FUNCTIONS
The format of the function description is:
FUNCTION (argument)
where the argument can be a numeric value, variable or string.
Each function description is followed by an EXAMPLE. The lines
appearing in bold face in the examples are the functions you type
in. The line without bold is the computer’s response.
ABS
Return absolute value
ABS (X)
The absolute value function returns the positive value of the
argument.
EXAMPLE:
PRINT ABS (7*(-5))
35
ASC
Return CBM ASCII code for character
ASC(X$)
This function returns the ASCII code of the first character of X$.
ln C128 Mode you no longer have to append CHR$(0) to a null
string. ILLEGAL QUANTITY ERROR is no longer issued.
EXAMPLE:
X$=“C128”:PRINTASC(X$)
67
ATN
Return angle whose tangent is X radians
ATN (X)
18-3