Online Java Compiler By
JavaTpoint.com
public class NextUpExample4 { public static void main(String[] args) { float x = 0.0f; // Input zero, Output Float.MIN_VALUE for float System.out.println(Math.nextUp(x)); } }
Output