Re: Ordinal Numbers (1st, 2nd, etc.)
Re: Ordinal Numbers (1st, 2nd, etc.)
- Subject: Re: Ordinal Numbers (1st, 2nd, etc.)
- From: John Cooper <email@hidden>
- Date: Thu, 16 Aug 2001 16:47:28 -0700
On 2001.08.16, Jason Bourque wrote:
on addNumericSuffix(thisNum)
set the listIndex to (thisNum mod 10) + 1
set the numSuffix to item listIndex of ,
{"th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th"}
return ((thisNum as text) & the numSuffix)
end addNumericSuffix
This returns "11st" and "12nd".