Template:Cardinal
Appearance
This template uses Lua: |
This template converts an ordinal number into a cardinal number by stripping the ordinal indicator off the end of the only parameter. Specifically, it removes any series of letters that immediately follows a numeral.
Usage
[edit]- {{cardinal|-1st}} → -1
- {{cardinal|0th}} → 0
- {{cardinal|1st}} → 1
- {{cardinal|2nd}} → 2
- {{cardinal|3rd}} → 3
- {{cardinal|4th}} → 4
- {{cardinal|1,234th}} → 1,234
See also
[edit]- {{ordinal}}, which adds an ordinal indicator to a cardinal number (an integer).