java.lang.Float.longValue()


java.lang.Float.longValue()

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 long */

      Float obj = new Float("9873267.90");

      long l = obj.longValue();

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



      obj = new Float("10.0");

      l = obj.longValue();

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

   }

}