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