Saturday, November 20, 2010

Javascript Decimal Error

(59.97-29.98-12.32-17.67) says it is off by -3.552713678800501e-15. Somehow it is off on the 15th decimal place. Weird. Happens all the time in Javascript. This article explains why: http://javascript.about.com/od/hintsandtips/a/Floating-Point-And-Javascript.htm

No comments: