#round(num * 100) / 100# will do just the math part. I.e. it won't add commas for thousand separators or an extra trailing zero. If you need to round the number and get a number (rather than a display string), this method is preferable. That code is obviously suitable for any number of decimal places, you need to raise 10 to the power of the number of places you want and use it where I've used 100 (which is 10 ^ 2).
cheers, barneyb On 4/3/07, Chris Ditty <[EMAIL PROTECTED]> wrote: > Thanks. That fixed it. I was looking under math functions and didn't > think about looking under format. DUH. :) > > thanks again > > On 4/3/07, Charlie Griefer <[EMAIL PROTECTED]> wrote: > > decimalFormat() > > > > http://livedocs.adobe.com/coldfusion/7/htmldocs/00000450.htm > > > > On 4/3/07, Chris Ditty <[EMAIL PROTECTED]> wrote: > > > Someone please tell me that this is so simple that I am just missing > > > it. I am trying to round this number - 207.44047619 to 207.44. > > > > > > The only way that I can think to do this would be to roll a custom > > > function. Is there not a 1-2 liner method to do this that I am simply > > > overlooking? > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274449 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

