• 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: Round Handler, care to share.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Round Handler, care to share.


  • Subject: Re: Round Handler, care to share.
  • From: Carl West <email@hidden>
  • Date: Wed, 06 Dec 2000 16:43:00 -0500
  • Organization: VPG Integrated Media

"Bourque, Jason" wrote:
>
> 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 round {theNumber, theNearest}
set theNumber to theNumber + (theNearest / 2)
return (theNumber - ((theNumber) mod theNearest))
end round


--
Carl West email@hidden
617.262.8830 x246

I have no superfluous leisure; my stay must be
stolen out of other affairs; but I will attend you awhile.

- Isabella, Measure for Measure, Act 3 Scene 1


  • Follow-Ups:
    • Re: Round Handler, care to share.
      • From: Carl West <email@hidden>
References: 
 >Round Handler, care to share. (From: "Bourque, Jason" <email@hidden>)

  • Prev by Date: Re: Idle Help
  • Next by Date: Re: Round Handler, care to share.
  • Previous by thread: Round Handler, care to share.
  • Next by thread: Re: Round Handler, care to share.
  • Index(es):
    • Date
    • Thread