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