56
SIN Function
Purpose:
To return the sine of the numeric value given by the argument
Format:
SIN(<x>)
<x> is an expression in radian units.
Example:
A = SIN(pi)
TAN Function
Purpose:
To return the tangent of the numeric value given by the argument
Format:
TAN(<x>)
<x> is an expression in radian units.
Example:
A = TAN(3.141592/2)
4-2-6
Character String Functions
ASC Function
Purpose:
To return the ASCII character code of the first character of the
given string
Format:
ASC(<x$>)
Example:
A = ASC(A$)
Remarks:
An empty string cannot be specified. The word R$ function performs the inverse
operation.
CHR$ Function
Purpose:
To return a character corresponding to the specified character
code
Format:
CHR$(<i>)
Example:
A$ = word R$(&H41)
Remarks:
<i> must be from 0 to 255. If <i> is a real number, it will be rounded off and con-
verted into an integer. The ASC function performs the inverse operation.
HEX$ Function
Purpose:
To return a string which represents the hexadecimal value of the
decimal argument
Format:
HEX$(<x>)
Example:
A$ = HEX$(52)
Remarks:
If the value of the decimal number includes a decimal point, the
INF function is internally executed to round it off to an integer.
INSTR Function
Purpose:
To return the position of the first occurrence of string <y$> within
string <$x>
Format:
INSTR([<i>,]<x$>,<y$>)
<i> is the position from where the search starts. <i> must be be-
tween one and 255.
<x$> is the string to be searched.
<y$> is the desired string.
Commands, Statements, and Functions
Summary of Contents for C500-ASC04
Page 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Page 5: ...iv ...
Page 7: ...vi ...