Float.MIN_EXPONENT in Java

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

Syntax:

int java.lang.Float.MIN_EXPONENT

Minimum exponent a normalized float variable may have (i.e. -126).

Approach

Java

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

        System.out.println(Float.MIN_EXPONENT);

    }
}

Output:

-126

No comments:

Post a Comment