java.lang.Math.getExponent(double d)


java.lang.Math.getExponent(double d)

package com.codingdict;



import java.lang.*;



public class MathDemo {



   public static void main(String[] args) {



      // get two double numbers

      double x = 60984.1;

      double y = -497.99;



      // 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(0)=" + Math.getExponent(0));

   }

}