| |
1.14.6.Float and Double classes define MAX_VALUE, MIN_VALUE, POSITIVE_INFINITY, and NEGATIVE_INFINITY. |
|
public class MainClass {
public static void main(String[] argv) {
System.out.println(Float.MAX_VALUE);
System.out.println(Double.MAX_VALUE);
System.out.println(Float.MIN_VALUE);
System.out.println(Double.MIN_VALUE);
System.out.println(Float.NEGATIVE_INFINITY);
System.out.println(Double.POSITIVE_INFINITY);
}
}
|
|
3.4028235E38
1.7976931348623157E308
1.4E-45
4.9E-324
-Infinity
Infinity |
|