You can try Math.ceil() method.

See JavaDoc link: https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#ceil-double-

From the docs:

ceil