This should be pretty simple. <cfset myInt = 6789/>
<cfset myRound = ceiling(myInt/1000) * 1000 /> On Thu, Sep 16, 2010 at 10:37 AM, Jeanmarie Richardson <[email protected]>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:337132 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

