[flexcoders] Re: look for a actionscript function?

2009-07-16 Thread postwick
Assuming you're doing this in Flex, use a formatter: http://livedocs.adobe.com/flex/3/html/help.html?content=formatters_4.html --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: I have a number 0.3563567,I want to convert it to 0.36,which function can do this?I check

[flexcoders] Re: look for a actionscript function?

2009-07-16 Thread jer_ela
I assume that what you want to do is round to to decimal places. If all you want to do is display the rounded number, you can use the NumberFormatter class. This can give you a string representation of the number rounded as you want it, which is fine for display. If you need to actually round

RE: [flexcoders] Re: look for a actionscript function?

2009-07-16 Thread Alex Harui
Subject: [flexcoders] Re: look for a actionscript function? I assume that what you want to do is round to to decimal places. If all you want to do is display the rounded number, you can use the NumberFormatter class. This can give you a string representation of the number rounded as you want