Mega Code Archive

 
Categories / Flash ActionScript / Development
 

To round a number to the nearest decimal place

package{   import flash.display.Sprite;      public class Main extends Sprite{     public function Main(){         trace (Math.round(90.337 / .01) * .01);   // Displays: 9.34     }   } }