java.lang.Float.doubleValue()


java.lang.Float.doubleValue()

package com.codingdict;



import java.lang.*;



public class FloatDemo {



   public static void main(String[] args) {



      /* returns the float value represented by this object

         converted to type double */

      Float obj = new Float("22.10f");

      double d = obj.doubleValue();

      System.out.println("Value = " + d);



      obj = new Float("5.0");

      d = obj.doubleValue();

      System.out.println("Value = " + d);

   }

}