One of my fellow developer discovered some weird behaviour with ColdFusion number manipulation. Here is an example
<cfset a = 26.2 /> <cfset b = 20 /> <cfset c = a - b /> <cfoutput> Value of c: #c# <br /> Is c EQ 6.2: #c EQ 6.2# <br /> ToString on c: #c.toString()# <br /> </cfoutput> If you run this piece of code the first value will be 6.2, second will be a NO and then toString will result in 6.199999999999999. Isn't this a simple subtraction? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309730 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4