Re: applescript-users digest, Vol 2 #106 - 15 msgs
Re: applescript-users digest, Vol 2 #106 - 15 msgs
- Subject: Re: applescript-users digest, Vol 2 #106 - 15 msgs
- From: "Marc K. Myers" <email@hidden>
- Date: Wed, 06 Dec 2000 17:36:58 -0500
- Organization: [very little]
Jason Bourque wrote:
>
From: "Bourque, Jason" <email@hidden>
>
To: email@hidden
>
Subject: Round Handler, care to share.
>
Date: Wed, 6 Dec 2000 15:35:23 -0500
>
>
Hello,
>
>
Does anyone have a vanilla handler that finds the next rounded value of a
>
number, this is to be used in charts.
>
>
i.e. 17.2 rounded would be 20
>
>
22.8 rounded would be 25
on roundUp(aNbr)
return (((aNbr - 1.0E-6) div 5) + 1) * 5
end roundUp
Marc [12/6/00 5:34:01 PM]