Double.MAX_EXPONENT in Java

Double.MAX_EXPONENT: This is available in java.lang.Double class of Java.

Syntax:

int java.lang.Double.MAX_EXPONENT

Maximum exponent a finite double variable may have (i.e 1023).

Approach

Java

public class DoubleMaxExponent {
    public static void main(String[] args) {

        System.out.println(Double.MAX_EXPONENT);

    }
}

Output:

1023

No comments:

Post a Comment