You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "steve Mclaughlin (JIRA)" <ji...@apache.org> on 2015/01/15 21:11:34 UTC

[jira] [Created] (FLEX-34718) .toFixed returns wrong value

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)