Flex Number Format
actionscript-3, apache-flex
Solution
Use the numberformatter.
<mx:NumberFormatter id="myFormatter"
decimalSeparatorFrom="."
decimalSeparatorTo="."
precision="-1"
rounding="none"
thousandsSeparatorFrom=","
thousandsSeparatorTo=","
useNegativeSign="true"
useThousandsSeparator="true"/>
actionscript code
x = myFormatter.format(x);
Problem
I want to format a number in indian format. for example, x= 123456 should be formatted as 1,23,456. How can i do it in flex? Thanks,