Question:
Find closest value to 0 for Float in Java?
Answer:
Float.MIN_VALUE
Code:
public class MyFloat { public static void main(String[ ] args) { Float f = new Float(Float.MIN_VALUE); System.out.format("%.50f%n", f); } }
Output:
$ java MyFloat 0.00000000000000000000000000000000000000000000140130