About 1,720,000 results
Open links in new tab
  1. Java ceil() method with Examples - GeeksforGeeks

    Apr 4, 2023 · The java.lang.Math.ceil () returns the double value that is greater than or equal to the argument and is equal to the nearest mathematical integer. Note: If the argument is Integer, then the result is Integer. If the argument is NaN or an infinity or positive zero or negative zero, then the result is the same as the argument.

  2. Java Math ceil() Method - W3Schools

    The ceil() method rounds a number UP to the nearest integer. Tip: To round a number DOWN to the nearest integer, look at the floor() method. Tip: To round a number to the nearest integer in either direction, look at the round() method.

  3. Java Math.ceil() method - Tpoint Tech

    Mar 21, 2025 · The java.lang.Math.ceil () is used to find the smallest integer value that is greater than or equal to the argument or mathematical integer. This method returns smallest floating-point value that is greater than or equal to the argument and is equal to a mathematical integer.

  4. Java Math – ceil() Floor() Methods - Guru99

    Sep 20, 2024 · The Math.ceil and Math.floor in Java methods are used to return the smallest and largest integer that are greater than or equal to the argument. Below is the Math floor and ceiling Java example.

  5. Java Math ceil() example - Java Guides

    The ceil() method of Java's Math class returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer. Syntax: Math.ceil(a)

  6. Java Math ceil(), floor(), round() Methods - Java Code Geeks

    Jan 3, 2024 · The Math.ceil() method returns the smallest integer greater than or equal to the specified numeric value. It effectively rounds up the number to the nearest whole number, regardless of the decimal part.

  7. Java Math ceil() - Programiz

    The ceil() method rounds the specified double value upward and returns it. The rounded value will be equal to the mathematical integer. That is, the value 3.24 will be rounded to 4.0 which is equal to integer 4. Example class Main { public static void main(String[] args) {

  8. Java Math ceil() Method - Java Guides

    The Math.ceil() method in Java provides a way to round a given value up to the nearest integer. By understanding how to use this method, you can perform various rounding operations and solve problems that require values to be rounded up.

  9. Java Math ceil() Method - Online Tutorials Library

    Learn how to use the Java Math ceil () method to round up numbers to the nearest integer. Explore examples and explanations in this comprehensive guide.

  10. Ceil() Method with Examples in Java - letsupdateskills.com

    The ceil() method in Java returns the smallest integer value that is greater than or equal to the given number. It is a part of the Java Math class and provides precise results for handling floating-point numbers.

  11. Some results have been removed
Refresh