Re: Ordinal Numbers (1st, 2nd, etc.)
Re: Ordinal Numbers (1st, 2nd, etc.)
- Subject: Re: Ordinal Numbers (1st, 2nd, etc.)
- From: Jason Bourque <email@hidden>
- Date: Thu, 16 Aug 2001 20:04:22 -0400
On 8/16/01 7:47 PM, "John Cooper" <email@hidden> 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".
Well, I never used it before, I took it off the list once and threw it into
a library.
So maybe someone else has a solution until I get time to rewrite it.
Jason