[ https://issues.apache.org/jira/browse/FLEX-15729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean resolved FLEX-15729. ---------------------------------- Resolution: Not A Problem That how Numbers work in ActionScript/Flash Player not an Apache Flex issue. > Adding values with precision > ---------------------------- > > Key: FLEX-15729 > URL: https://issues.apache.org/jira/browse/FLEX-15729 > Project: Apache Flex > Issue Type: Bug > Components: MXML Scripting > Affects Versions: Adobe Flex SDK 2.0.1 (Release) > Environment: Affected OS(s): Windows > Affected OS(s): Windows XP > Browser: Internet Explorer 7.x > Language Found: English > Reporter: Adobe JIRA > > Steps to reproduce: > 1.create an array collection with property amount having values with > precision 2 e.g. 14.59, 12.99, 13.58 > 2.use a for loop to calculate summation as amt = amt + > myArrayCollection[i].amount > 3.trace/Alert the summation at each stage. > > Actual Results: > 0+76.39 = 76.39 > 76.39+416.59 = 492.97999999999996 (this is actual result) > > Expected Results: > > > Workaround (if any): > used Number.toFixed method to truncate the precision. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira