• 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: "Serge Belleudy-d'Espinose" <email@hidden>
  • Date: Thu, 7 Dec 2000 13:13:27 +0100

At 15:35 -0500 6/12/00, Bourque, Jason wrote:

>Does anyone have a vanilla handler that finds the next rounded value of a
>number, this is to be used in charts.

It requires only one line, maybe not enough to use a handler :)

on xRound(xNumber, xMod)
return (round (xNumber / xMod) rounding up) * xMod
end xRound

--

xRound(17.2, 5)

-> 20

Serge

__ __ __
_ \///\/ _ I N S T I T U T | Serge Belleudy-d'Espinose - IJM
\///\/// J A C Q U E S | 2 place Jussieu - 75251 Paris Cedex 05
_///\///\_ M O N O D | m@il : email@hidden
__/\///\__ Service Informatique | WWW : http://www.ijm.jussieu.fr/


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