You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Robbyn Gerhardt (JIRA)" <ji...@apache.org> on 2014/11/25 13:18:12 UTC

[jira] [Created] (FLEX-34646) NumberFormatter calculated incorrectly

Robbyn Gerhardt created FLEX-34646:
--------------------------------------

             Summary: NumberFormatter calculated incorrectly
                 Key: FLEX-34646
                 URL: https://issues.apache.org/jira/browse/FLEX-34646
             Project: Apache Flex
          Issue Type: Bug
    Affects Versions: Apache Flex 4.13.0
         Environment: see, for example
            Reporter: Robbyn Gerhardt
             Fix For: Apache Flex 4.14.0


var myNumber:Number = 10.00;
//Output: 10

var newNumber:NumberFormatter	=	new NumberFormatter();
newNumber.decimalSeparatorTo	=	",";
newNumber.precision				=	2;
newNumber.useThousandsSeparator	=	false;

var newNumberOutput:String	=	newNumber.format(myNumber);

//Output: 1000,00



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