string
string(n)
Returns the string expressing the integer n.
If n is a string "s...":
if s = %:
returns 1 if ... is a number, else returns 0
else returns NIL
Examples:
"A",string(123);
produces string A123.
string("AB");
produces NIL.
string("%123");
produces 1.
string("%a123");
produces 0.
string("s1;s2")
Returns the number of the word s1 in the string s2.
Examples:
"BC;A BC\nDEF";
 
prints 1
"X;A BC\nDEF";
 
prints NIL
string("ntype",e)
Returns the string expressing the integer e according to format "ntype"
n = number of the characters of the string
type = D(decimal), X(hexadecimal), O(octal) or B(binary)
Examples:
$string("4D",12);
prints 0012.
$string("6D",12);
prints 000012.
$string("2D",123);
prints 23.
$string("3X",11);
prints 00B.
$string("2O",10);
prints 12.
$string("4B",10);
prints 1010.
Voir aussi: