Use Math.ceil( ) to round a number up. : Math : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » Math »

 

Use Math.ceil( ) to round a number up.


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        trace(Math.ceil(401.01));    // Displays: 402
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Development
» Math