Get a non-negative integer's ordinal word form (e.g. 21 -> 'twenty-first').
21
'twenty-first'
Non-negative integer to convert.
The number's ordinal words, or an error message for invalid input.
ordinalToWords(1); // 'first'ordinalToWords(21); // 'twenty-first'ordinalToWords(100); // 'one hundredth' Copy
ordinalToWords(1); // 'first'ordinalToWords(21); // 'twenty-first'ordinalToWords(100); // 'one hundredth'
Get a non-negative integer's ordinal word form (e.g.
21->'twenty-first').