Re: Ordinal Numbers (1st, 2nd, etc.)
Re: Ordinal Numbers (1st, 2nd, etc.)
- Subject: Re: Ordinal Numbers (1st, 2nd, etc.)
- From: Arthur J Knapp <email@hidden>
- Date: Fri, 17 Aug 2001 10:36:53 -0400
>
Date: Thu, 16 Aug 2001 20:17:21 -0400
>
Subject: Re: Ordinal Numbers (1st, 2nd, etc.)
>
From: Jason Bourque <email@hidden>
>
on addNumericSuffix(thisNum)
>
set the listIndex to (thisNum mod 10) + 1
>
if thisNum is less than 11 then
>
set the numSuffix to item listIndex of ,
>
{"th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th"}
>
else if thisNum is greater than 10 and thisNum is less than 20 then
>
set the numSuffix to item listIndex of ,
>
{"th", "th", "th", "th", "th", "th", "th", "th", "th", "th"}
>
else
>
set the numSuffix to item listIndex of ,
>
{"th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th"}
>
end if
Good Lord, surely it isn't as complicated as all this. Am I missing
something?
Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden
Hey, check out:
http://www.latenightsw.com/freeware/JavaScriptOSA/