LetterNumber
A letter's 1-based position in the English alphabet -- a → 1, …, z → 26.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
LetterNumber✓LetterNumber(c)the 1-based alphabet position of a single character c (0 if not a letter)LetterNumber(s)a list, one position per character of string sTyped signatures
| Type | Package | Applies |
|---|---|---|
(string, string?) -> integer | list<integer> | combinatorics | always |
Details
- Case-insensitive -- LetterNumber("D") and LetterNumber("d") agree.
- The LetterNumber(c, alphabet) form is only answered for alphabet = "English"; any other named alphabet is left unevaluated.
Examples
About
| Examples | 4 |
|---|---|
| Checked against | Wolfram Language 4 agree |
| Crosswalk | Wolfram Language |