toFixed() or toPrecision()

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Mark
Sent: Saturday, May 10, 2008 4:31 AM
To: [email protected]
Subject: [flexcoders] I need some light math and ActionScript help
please

 

I'm trying to find the median in my Array of numbers which is fine but 
in some cases that number comes out to something like (3.92 84.5 
3.5599999999999996 3.665). In ActionScript how do I take that number 
and reduce the length to something more manageable like (3.9, 84.5, 
3.6, 3.7). I know how to round up to whole numbers but not like this.

Anyone know?

Thanks

 

Reply via email to