The ceil() method returns the next-highest integer value of the number passed it as an argument. : Math : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » Math »

 

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

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Development
» Math