PDA

View Full Version : currency format


Anitha
05-29-2008, 09:12 AM
Hi all,

With the help of the thousand separator property we can represent a number just ike 1,000,000,000.
but i want to display a numberfield in grid with hundred seperator just like 1,00,00,00,000.How ? any idea please??


regards,

Anitha
05-30-2008, 11:16 AM
Any idea on this?My self i tried some ways.That is,
private function formatVal():void {

var switcher:SwitchSymbolFormatter=new SwitchSymbolFormatter('#');

formattedtbx.text = switcher.formatValue("Formatted Social Securty number: ##,##,##,##,###.## ", scNum.text);
}

here my input is 25000.The answer is "Formatted Social Securty number: 25,00,0,,. ".
(ie) it make a right align but i need left alignment.But i want 25,000. How? any idea please?

regards,