gives the position of the character c in the English alphabet.
gives the position of c in the alphabet specified by alpha.
gives a list of the positions of characters in string.
- The character c can be either uppercase or lowercase.
- An alphabet can be specified by the entity for a language or by its standard name.
- If a character does not appear in the specified alphabet, LetterNumber gives 0.
Examplesopen all close all
Basic Examples (4)
LetterNumber works the same with uppercase letters: