Package-level declarations
Functions
Link copied to clipboard
Returns the English ordinal suffix for an Int ("st", "nd", "rd", "th"). Example: 1.ordinalSuffix() → "st" Example: 11.ordinalSuffix() → "th"
Link copied to clipboard
Returns the written-out ordinal word for numbers 1–20. Falls back to numeric ordinal (e.g. "21st") for larger values. Example: 3.toOrdinalWord() → "third" Example: 25.toOrdinalWord() → "25th"