Math: ceil(float value)
/* * Output: The ceiling of 45.7 is 46.0 */ public class MainClass { public static void main(String args[]) { System.out.println("The ceiling of 45.7 is " + Math.ceil(45.7)); } }