Converts a string expression to return a binary value.
Syntax |
|
Formal Declaration |
|
Parameters |
|
- strexp
A string expression to be converted from ASCII into binary.
Examples |
|
%cmdebug > wl bin("1+2")
%3
|
The contents of the string "1+2" are evaluated as an expression, and the
result (3) is converted into a binary value.
Limitations, Restrictions |
|
If the string parameter strexp contains an expression that, when
evaluated, results in a string, the resulting string is returned. It
is not converted into a binary value. For example:
$nmdat > wl bin ('"A"+"B"')
AB
$nmdat > wl typeof(bin('"A"+"B"'))
STR
|