Java Integer floatValue() MethodThe floatValue() method is a method of Integer class under java.lang package. This method returns the float equivalent value of this Integer object. The floatValue() method were specified from the Number Class. It may also involve in rounding or truncation of the Integer value. Syntax:Following is the declaration of floatValue() method: Parameter:
Returns:The floatValue() method will return the numeric value represented by this object after conversion to type float. Exceptions:NA Compatibility Version:Java 1.2 and above Example 1Output: Value : 2454.0 Value : 8.6549872E7 Example 2Output: Enter The Input Values: 2343543 34546658233654 Value : 2343543.0 Value : 3.45466575E13 Example 3Output: Value is = 1.5 Example 4Output: Enter The Desired Input Value: 46567 The Float Value is: 46567.0 Next TopicJava-integer-hashcode-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India