Skip to content

code

Numeric character code of the first character.

v = code(text)

Returns the numeric character code (Unicode for non-ASCII, ASCII for plain) of the first character of text. Inverse of char.

code('A') % 65
  • char — Character with the given numeric code (Excel-compatible).