CODE Function /text/scalc/01/func_code.xhp CODE function

CODE

Returns a numeric code for the first character in a text string.
CODE("Text") Text is the text for which the code of the first character is to be found. =CODE("Hieronymus") returns 72, =CODE("hieroglyphic") returns 104. The code used here does not refer to ASCII, but to the code table currently loaded.
CODE wiki page.