Previous Up Next

5.2.8  ASCII code of a character

The ord command finds the ASCII code of a character.

Example

ord("a")
     
97           
ord("abcd")
     
97           
ord(["abcd","cde"])
     
⎡
⎣
97,99⎤
⎦
          
ord(["a","b","c","d"])
     
⎡
⎣
97,98,99,100⎤
⎦
          

Previous Up Next