java.lang.Math.getExponent(float f)


java.lang.Math.getExponent(float f)

package com.codingdict;



import java.lang.*;



public class MathDemo {



   public static void main(String[] args) {



      // get two float numbers

      float x = 60984.1f;

      float y = -497.99f;



      // print the unbiased exponent of them

      System.out.println("Math.getExponent(" + x + ")=" + Math.getExponent(x));

      System.out.println("Math.getExponent(" + y + ")=" + Math.getExponent(y));

      System.out.println("Math.getExponent(0f)=" + Math.getExponent(0f));

   }

}