• 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: 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".


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

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