C2D
|
Where
string is any valid string expression.
length is an integer constant expression with a value of 1 to 4.
Results
Integer
Function
The C2D function returns the integer value of the binary representation of string. length specifies the number of characters of string to be converted. If length is not specified, all characters will be converted.
Examples
i = '50'x /* "i" is a string variable. */
a = c2d(i) /* "a" is an integer variable with a value of */
/* 80 ('50'x). */
a = c2d('A') /* "a" is an integer variable with a value of */
/* 193 ('C1'x). */
Note
If the specified string is the null string, the result of this function is undefined.