How to Use Math.ceil() in Java


In this example we will show you how to use math.ceil() in Java.

Source Code

package com.beginner.examples;

public class Ceil {
  public static void main(String[] args){
     System.out.println(Math.ceil(11.3));; // use math.Ceil()
  }
}

Output:

12.0

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments