Update toOrdinalSuffix.md
This commit is contained in:
@ -3,7 +3,7 @@ title: toOrdinalSuffix
|
|||||||
tags: math,intermediate
|
tags: math,intermediate
|
||||||
---
|
---
|
||||||
|
|
||||||
Adds an ordinal suffix to a number.
|
Takes a number and returns it as a string with the correct ordinal indicator suffix.
|
||||||
|
|
||||||
- Use the modulo operator (`%`) to find values of single and tens digits.
|
- Use the modulo operator (`%`) to find values of single and tens digits.
|
||||||
- Find which ordinal pattern digits match.
|
- Find which ordinal pattern digits match.
|
||||||
|
|||||||
Reference in New Issue
Block a user