That's very interesting. I've seen similar problems before, and it appears that things like this shine some light on weaknesses in ColdFusion's dynamic typing. I'm eagerly waiting for one of the CF geniuses to give insight on this. :)
> -----Original Message----- > From: Martin Thorpe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 15, 2006 9:14 AM > > So I was thinking that evaluate should not make any difference to > mathematical calculations, but I have been shown this by some > mathematical guy and the only calculation that is correct is the > evaluated one, is there a way to do this without evaluate() or not: > > <cfset a=336.6> > <cfset b=448.8> > <cfset c=785.4> > <cfset d=a+b> > <cfset e=evaluate(a+b)> > <cfoutput> > #a# + #b# - #c# = #a+b-c# <br> > ( #a# + #b# ) - #c# = #d-c# <br> > eval( #a# + #b# ) - #c# = #e-c# <br> > </cfoutput> This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. A1. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235460 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