Mega Code Archive

 
Categories / Flash ActionScript / Development
 

The ceil() method returns the next-highest integer value of the number passed it as an argument

package{   import flash.display.Sprite;      public class Main extends Sprite{     public function Main(){         trace(Math.ceil(5.75));  // Displays: 6         trace(Math.ceil(93.3));  // Displays: 94         trace(Math.ceil(93));  // Displays: 93     }   } }