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