I'd like to translate a character in Emacs to its numeric ascii code, similar to casting char a = 'a'; int i = (int)a
in c. I've tried string-to-number
and a few other functions, but none seem to make Emacs read the char as a number in the end.
What's the easiest way to do this?