>>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.
This is neither a CF bug, neither a Java behavior. This is a normal behavior in digital computers and the way real numbers are stored. If #c# seems to be output correctly, it is probably because of rounding by CF. But the test fails, because c is not exactly 6.2 As a basic principle in programing, one should never (and I really mean *never* ;-) compare floating values, especially when they are results of an operation. Instead of c EQ 6.2, one should use Abs (c - 6.2) LTE 0.000001 or anything equivalent. -- _______________________________________ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:309732 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4