Re: Round Handler, care to share.
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/