5.2.9
ASCII
code of a string
The
asc
command finds the
ASCII
codes of all the characters in a string.
asc
takes
str
, a string.
asc(
str
)
returns the list of the
ASCII
codes of the characters of
s
.
Examples
asc
(
"abcd"
)
⎡
⎣
97,98,99,100
⎤
⎦
asc
(
"a"
)
⎡
⎣
97
⎤
⎦