Online Java Compiler By
JavaTpoint.com
public class CeilExample5 { public static void main(String[] args) { double x = -0.25; // Input less than zero but greater than -1.0, Output negative zero System.out.println(Math.ceil(x)); } }
Output