flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robbyn Gerhardt (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-34646) NumberFormatter calculated incorrectly
Date Tue, 25 Nov 2014 12:18:12 GMT
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)

Mime
View raw message