Installation guide
Programming Commands 79
ASC String Manipulation
ACTION: Returns the ASCII code for the first character in a string.
PROGRAM SYNTAX: ASC(n$)
REMARK: The ASCII code returned is for the first character in the string variable
n$. If the string is a null then a 0 will be returned.
EXAMPLE: a$=“part#”
X=ASC(a$) ‘ sets x=112 ‘p’
ATN Mathematics Function
ACTION: Returns the angle (in radians) whose tangent is x.
PROGRAM SYNTAX: ATN(x) - used in an expression
REMARK: The arctangent returns an angle in the range -π/2 to π/2 radians. π/2
radians equals 90 degrees.
To convert values from degrees to radians, multiply the angle (in de-
grees) by π/180 (or 0.017453).
To convert a radian value to degrees, multiply it by 180/π ( or
57.295779).
EXAMPLE: X=ATN(1) ‘ returns .785398 radians, which is 45 degrees.
ATN2 Mathematics Function
ACTION: Returns the angle (in radians) whose tangent is y/x.
PROGRAM SYNTAX: ATN2(y,x) - used in an expression
REMARK: The arctangent returns an angle in the range -π to π radians. π radians
equals 180 degrees.
To convert values from degrees to radians, multiply the angle (in de-
grees) time π/180 (or .017453).
To convert a radian value to degrees, multiply it by 180/π ( or
57.295779).
EXAMPLE: X=ATN2(2.5,3) ‘ returns .694727 radians which is 39.8 degrees










