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:17:34 UTC

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

     [ https://issues.apache.org/jira/browse/FLEX-34718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

steve Mclaughlin updated FLEX-34718:
------------------------------------

Is this the same as bug in Flash Player (FP-5141). ?

> .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
>              Labels: toFixed
>
> 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)