format_format_ordinal
Convert integers to English ordinal strings (1st, 2nd, 3rd) with correct handling of exceptions like 11th, 12th, 13th.
Instructions
[format] 1 → '1st', 2 → '2nd', 3 → '3rd', 11 → '11th', 21 → '21st'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |