You can avoid the round function by doing integer division:

#num*100\100#

>#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:
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274453
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to