CurrencyFormatter used to display a price
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:XML id="myData">
<root>
<item name="Laptop" price="1.911119" />
</root>
</mx:XML>
<mx:CurrencyFormatter id="fmtCurrency" precision="2" />
<mx:Label
text="Laptop Price {fmtCurrency.format(myData.item.@price)}" />
</mx:Application>
Related examples in the same category