EN
Java - max float value
10
points
In Java, max float number value can be achieved using Float.MAX_VALUE
what is equal to 3.4028235e+38f
.
Practical example:
package example;
public class Program {
public static void main(String[] args) {
System.out.println(Float.MAX_VALUE); // 3.4028235e+38f or in hex: 0x1.fffffeP+127f
}
}
Output:
3.4028235e+38f