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