FromLetterNumber

FromLetterNumber[n]

gives the lowercase letter at position n in the English alphabet.

FromLetterNumber[n,alpha]

gives the letter at position n in the alphabet specified by alpha.

Details

  • An alphabet can be specified by the entity for a language, or by its standard name.
  • FromLetterNumber automatically threads over lists.
  • Negative positions count from the end of the alphabet, starting at .
  • FromLetterNumber[0] gives " ".

Examples

open allclose all

Basic Examples  (4)

Get the 4^(th) letter in the English alphabet:

In[1]:=
Click for copyable input
Out[1]=

Get letters at several positions in the English alphabet:

In[2]:=
Click for copyable input
Out[2]=

Get the 4^(th) letter in the Greek alphabet:

In[1]:=
Click for copyable input
Out[1]=

Get the last letter in the Greek alphabet:

In[1]:=
Click for copyable input
Out[1]=

Get the letter from the alphabet specified by a language entity:

In[1]:=
Click for copyable input
Out[1]=

Applications  (2)

Properties & Relations  (1)

See Also

Alphabet  LetterNumber  FromCharacterCode  BaseForm  IntegerString  ToUpperCase  RomanNumeral

Introduced in 2015
(10.1)
| Updated in 2017
(11.1)