Online Java Compiler By
JavaTpoint.com
public class CeilExample3 { public static void main(String[] args) { double x = -1.0 / 0; // Input negative infinity, Output negative infinity System.out.println(Math.ceil(x)); } }
Output