I'm having a rather strange problem with extremely simple float calculations
failing, take the following example:


var float1:Number = 1 - (0.3 + 0.6 + 0.1); 
trace(float1);
=> 1.11022302462516e-16
 
var float2:Number = (1*10) - ((0.3*10) + (0.6*10) + (0.1*10));
trace(float2); 
=> 0


Can someone explain what the heck is going on here? I'm making a loan
interest calculator for a client with some pretty big numbers making this
sort of accuracy problems a huge issue.

--
Regards,
Simen Brekken



_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to