Float.MAX_EXPONENT in Java

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

Syntax:

int java.lang.Float.MAX_EXPONENT 

Maximum exponent a finite float variable may have.

Approach

Java

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

        System.out.println(Float.MAX_EXPONENT);

    }
}

Output:

127

No comments:

Post a Comment