java.lang.Math.floor(double a)


java.lang.Math.floor(double a)

package com.codingdict;



import java.lang.*;



public class MathDemo {



   public static void main(String[] args) {



      // get two double numbers

      double x = 60984.1;

      double y = -497.99;



      // call floor and print the result

      System.out.println("Math.floor(" + x + ")=" + Math.floor(x));

      System.out.println("Math.floor(" + y + ")=" + Math.floor(y));

      System.out.println("Math.floor(0)=" + Math.floor(0));

   }

}