> I'm kind of disapointed :
> trace (1.3-1) // traces:0.3
> but :
> trace (9.3-9) // traces: 0.300000000000001
> trace (100.3-100) //traces: 0.299999999999997
> ...
> is there a way that it can traces always 0.3 has it should be normal ?

http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2002-October/049213.html
http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems

Short answer: that's expected, happens with every language, use rounding if you need, etc.


Zeh
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to