ascii

Returns the ASCII code value of the leftmost character of the argument as an integer.

Syntax

ascii ( string_expression )

Example

ascii ( a )

Result

Returns 65, the ASCII code value of "a".