Java Long floatValue Example

Long class floatValue method example.


Long class floatValue method example. This example shows you how to use floatValue method. This method generates the decimal type values of Long object.

Syntax:- floatValue()

Here is the code:- <
/**
 * @(#) FloatValueLong .java
 *  FloatValueLong  class demonstrates the working of floatValue()method of Long class of lang package
 @version 9-May-2008
 @author Rose India Team
 */

public class FloatValueLong {
  public static void main(String args[]) {

    // method converts the long type value ofthe Long object to decimal type
    // values
    // and the value is stored in a variable that holds floating numbers in
    // it
    Long x = new Long(532);
    System.out.println"returned decimal number is " + x.floatValue());
  }
}

Post Comment
Name:
E-mail:
Contact no :
Comments:
  Refresh Image
Verify Image:
 
 
Your Comment's
 
 
 

HOME | COPYRIGHT | CONTACT US