ascii

(ascii string)

The ascii function converts the first character of string into its ASCII-Code, which is returned as an integer.

Examples

: (ascii "A")

65

: (ascii "ABC")

65

: (ascii "a")

97

: (ascii "")

0

Related Functions

chr