Not a bug, just the nature of floating point arithmetic. Which is why every database has a DECIMAL type for scenarios where perfection is with the decrease in performance, rather than just using FLOAT or REAL.
cheers, barneyb On 12/6/05, Damien McKenna <[EMAIL PROTECTED]> wrote: > Weird. I did this: > > <cfdump var="#val(15.12 + 59.70 - 74.82)#"/><br /> > <cfdump var="#evaluate(15.12 + 59.70 - 74.82)#"/><br /> > <cfoutput>#evaluate(15.12 + 59.70 - 74.82)#</cfoutput> > <cfoutput>#15.12 + 59.70 - 74.82#</cfoutput> > > And got this output: > > 1.42108547152 > 1.42108547152E-014 > 1.42108547152E-014 > 1.42108547152E-014 > > Note that your val() function is removing the "E-014" portion, so you're > not getting 1.42-odd infact you're getting 0.0000000000000142-odd. > > Definitely a bug somewhere. > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 100 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226259 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

