Thanks All! This is what I needed! > Beat me to it, Phillip, but she'll want ceiling() to get the upper > 1000: > > > <cfset rnd = ceiling(raw / 1000) * 1000 /> > > ---------------------------------------- > > From: "Phillip Vector" <[email protected]> > Sent: Thursday, September 16, 2010 10:54 AM > To: "cf-talk" <[email protected]> > Subject: Re: Rounding Numbers > > Couldn't you divide it by 1000 then round, then multiply by 1000? > > <cfset RoundedVariable=(Round(VariableToRound/1000)))*1000> > > I don't know if that will work and it's early in the morning, so the > code may be wrong, but I suspect you get the idea. > > On Thu, Sep 16, 2010 at 7:37 AM, Jeanmarie Richardson <jean...@tdai. > net> wrote: > > > > Hi -- > > > > I need to round numbers consistently to the highest 1000. �Is there > a CF Function that will do this? �I found something called > intervalRound from Rob Rusher but it rounds to the nearest 1000 > (rounding down in some cases) which is not what I need. �An example > would be great! > > > > >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337136 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

