Use NumberFormatter to format number : NumberFormatter « Data Model « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Data Model » NumberFormatterScreenshots 
Use NumberFormatter to format number
Use NumberFormatter to format number
    

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

    <mx:TextInput text="{numberFormatter.format('1234.56789')}" />
    <mx:NumberFormatter id="numberFormatter" />


</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.Set rounding for NumberFormatterSet rounding for NumberFormatter
3.Set precision for NumberFormatterSet precision for NumberFormatter
4.Set decimalSeparatorFrom for NumberFormatterSet decimalSeparatorFrom for NumberFormatter
5.Set thousandsSeparatorFrom for NumberFormatterSet thousandsSeparatorFrom for NumberFormatter
6.Using the NumberFormatter classUsing the NumberFormatter class
ww__w__._j_a___v_a___2_s__.c__o__m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.