java.lang.Math.ceil(double a)


java.lang.Math.ceil(double a)

package com.codingdict;



import java.lang.*;



public class MathDemo {



   public static void main(String[] args) {



      // get two double numbers

      double x = 125.9;

      double y = 0.4873;



      // call ceal for these these numbers

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

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

      System.out.println("Math.ceil(-0.65)=" + Math.ceil(-0.65));

   }

}