Because the Number type, which takes up 64 bits, can only store 15 or 16 
significant decimal digits. It doesn't do infinite precision arithmetic.

Gordon Smith
Adobe Flex SDK Team

From: [email protected] [mailto:[email protected]] On Behalf 
Of _estatica_
Sent: Monday, July 13, 2009 1:37 PM
To: [email protected]
Subject: [flexcoders] Actionscript Number BUG?!!!





Can anyone explain why this:

var test:Number=4984907906439604488;
trace(test);

Print out this:

4984907906439604000

Why am I losing precision?

Any hint is appreciated!

Reply via email to