CODE

Syntax:

CODE( text )

Returns the Latin-1 number corresponding to the first character of the text string.

Example:

CODE("Apricot")

returns the number 65, the Latin-1 numeric value of the letter A.

Revisions:

Starting with 2.20, this function will return zero if supplied with an empty string (compatible with LibreOffice Calc behaviour).