The java.lang.Math.getExponent() returns the unbiased exponent used in the representation of a double or float.
- If the argument is NaN or infinite of double or float type, then the result is (Double.MAX_EXPONENT + 1) or (Float.MAX_EXPONENT + 1).
- If the argument is zero or subnormal of double or float type, then the result is (Double.MIN_EXPONENT -1) or (Float.MIN_EXPONENT -1).
public static int getExponent(DataType a) Parameter : a : an argument of double or float type Return : This method returns the unbiased exponent of the argument.
8 1024 -1023 7 128 -127
Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.
- Java Math getExponent() method with Example
- StrictMath getExponent() Method In Java
- Java.math.BigInteger.modInverse() method in Java
- Java.math.BigInteger.probablePrime() method in Java
- Java Math exp() method with Example
- Java Math log() method with example
- Math pow() method in Java with Example
- Math fma() method in Java with Examples
- Math floorDiv() method in Java
- Java Math ulp() method with Examples
- Java Math round() method with Example
- Java Math asin() method with Example
- Java Math expm1() method with Example
- Java Math negateExact() method
- Java Math nextAfter() method with Example
- Java Math incrementExact() method
- Java Math decrementExact() method
- Math scalb() Method in Java
- Java Math min() method with Examples
- Java Math max() method with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.