Skip to content

char

Character with the given numeric code (Excel-compatible).

v = char(number)

Returns a one-character string whose code is number. Inverse of code.

Note: in script mode, char() accepts a numeric array and returns a multi-character string.

char(65) % 'A'
char(10) % newline
  • code — Numeric character code of the first character.
  • newline — The newline character (\n).