• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Ordinal Numbers (1st, 2nd, etc.)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Ordinal Numbers (1st, 2nd, etc.)
      • From: Jason Bourque <email@hidden>
References: 
 >Re: Ordinal Numbers (1st, 2nd, etc.) (From: John Cooper <email@hidden>)

  • Prev by Date: Re: URL Access problems
  • Next by Date: Re: Ordinal Numbers (1st, 2nd, etc.)
  • Previous by thread: Re: Ordinal Numbers (1st, 2nd, etc.)
  • Next by thread: Re: Ordinal Numbers (1st, 2nd, etc.)
  • Index(es):
    • Date
    • Thread