How to show numbers with comma separation in flex?

Posted by zombiegx on Stack Overflow See other posts from Stack Overflow or by zombiegx
Published on 2010-03-30T17:35:59Z Indexed on 2010/03/30 17:43 UTC
Read the original article Hit count: 342

Filed under:
|

I can't seem to find anything that would let me to easily show a Number in a label, textinput, etc. with comma separation.

like in a label, show number 123456.78 as 123,456.78

[Bindable]
private var num:Number = 123456.78;

<mx:Label text={num} />

Obviously I could just create a function, but is there a more simple way?

thanks

© Stack Overflow or respective owner

Related posts about flex

Related posts about actionscript-3