>This is not a new issue.  It happens in javascript, too, as I found out 
>about 6 months ago.  Jim was nice enough to point out the problem to me.
>
>Google "floating point arithmetic" to read up on it.  It's complicated, 
>but makes sense once you get your head 'round it.

Right, I understand the floating point issue and that's fine. I guess my beef 
is with the fact that val() doesn't understand the scientific notation. I 
always thought it was better "practice" to do this:

#val(a + b)#

Rather than:

#(a + b)#

But now I guess that's not true. And after reading carefully the live docs on 
val(), I can see why. But I never would have thought of it until now, when I 
happened upon a combination of numbers that produced this result. And I have 
been doing full time CF development for 8+ years so it's not for lack of 
exposure.

Oh well. Time to put that cfeclipse regexp search to use.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226273
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to