Previous Up Next

6.3.7 ASCII code of a character: ord

The ord command finds the ASCII code of a character.


Example.
Input:

ord("a")

Output:

97

Input:

ord("abcd")

Output:

97

Input:

ord(["abcd","cde"])

Output:

⎡
⎣
97,99⎤
⎦

Input:

ord(["a","b","c","d"])

Output:

⎡
⎣
97,98,99,100⎤
⎦

Previous Up Next