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,
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);
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With