flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "steve Mclaughlin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-34718) .toFixed returns wrong value
Date Thu, 15 Jan 2015 20:11:34 GMT
steve Mclaughlin created FLEX-34718:
---------------------------------------

             Summary: .toFixed returns wrong value
                 Key: FLEX-34718
                 URL: https://issues.apache.org/jira/browse/FLEX-34718
             Project: Apache Flex
          Issue Type: Bug
            Reporter: steve Mclaughlin
            Priority: Minor


var badnum:Number;
                badnum = 0.018746675664829127;
                trace(badnum.toFixed(0));
                badnum = 0.0872751526378579;
                trace(badnum.toFixed(0));
                badnum = 0.12153939111158252;
                trace(badnum.toFixed(0));

returns:
0.
1.
0.

should all be zero??



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message