Double.MIN_EXPONENT in Java

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

Syntax:

int java.lang.Double.MIN_EXPONENT

Minimum exponent a normalized double variable may have (i.e. -1022)

Approach

Java

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

        System.out.println(Double.MIN_EXPONENT);

    }
}

Output:

-1022

No comments:

Post a Comment