You can use Math.ceil() method. See JavaDoc link: https://docs.oracle.com/javase/10/docs/api/java/lang/Math.html#ceil(double) From the docs: ceil public static double ceil(double a) Returns the smallest (closest to negative infinity) double ...
  • April 6, 2022
  • 0 Comments