|
|
Converts a string expression to return a binary value.
bin (strexp)
bin:any (strexp:str)
- strexp
A string expression to be converted from ASCII into binary.
%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.
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
|