The floor()returns the next-lowest integer. : Math : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » Math »

 

The floor()returns the next-lowest integer.


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        trace(Math.floor(5.75));  // Displays: 5
        trace(Math.floor(93.3));  // Displays: 93
        trace(Math.floor(93));  // Displays: 93

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Development
» Math