Casio ClassPad 300 PLUS User Manual
Page 587

20050501
ExpToStr
Syntax:
ExpToStr
Ⅺ<expression>,<storage variable name>
Function:
Converts the result of an input expression to a string and assigns the string to
the specified variable.
NumToChr
Syntax:
NumToChr
Ⅺ
n
,<storage variable name>
Function:
Converts numeric value
n
to the corresponding text character(s) in accordance
with the character code table, and assigns the character(s) as a string to the
specified variable. For information about character codes, see Appendix page
α-6-1.
NumToStr
Syntax:
NumToStr
Ⅺ<value>,
{
"Fix <integer from 0 to 9>"
}
, <storage variable name>
"Sci <integer from 0 to 9>"
Function:
Converts a numeric value to a string of the specified format, and assigns the
resulting string to the specified variable.
Example:
NumToStr 1.234, "Fix2",
x
StrCmp
Syntax:
StrCmp
Ⅺ "<string 1>", "<string 2>", <storage variable name>
Function:
Compares "<string 1>" and "<string 2>" (character code comparison) and
assigns the resulting value to the specified variable.
Description
• Returns 0 when "<string 1>" = "<string 2>".
• Returns 1 when "<string 1>" > "<string 2>".
• Returns –1 when "<string 1>" < "<string 2>".
StrInv
Syntax:
StrInv
Ⅺ "<string>", <storage variable name>
Function:
Inverts the sequence of a string and assigns the resulting string to a variable.
12-6-42
Program Command Reference