Set thousandsSeparatorFrom for NumberFormatter : NumberFormatter « Data Model « Flex






Set thousandsSeparatorFrom for NumberFormatter

Set thousandsSeparatorFrom for NumberFormatter
    

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:TextInput text="{numberFormatter.format('1.234,56789')}" />
    <mx:NumberFormatter id="numberFormatter" 
                        thousandsSeparatorFrom="." />

</mx:Application>

   
    
    
    
  








Related examples in the same category

1.Using a NumberFormatter to format a number to two decimal placesUsing a NumberFormatter to format a number to two decimal places
2.Use NumberFormatter to format numberUse NumberFormatter to format number
3.Set rounding for NumberFormatterSet rounding for NumberFormatter
4.Set precision for NumberFormatterSet precision for NumberFormatter
5.Set decimalSeparatorFrom for NumberFormatterSet decimalSeparatorFrom for NumberFormatter
6.Using the NumberFormatter classUsing the NumberFormatter class