Integer floatValue() Method in Java
The java.lang.Integer.floatValue() method of Integer class of java.lang package is used to convert the value of the given Integer to a float type after a widening primitive conversion.
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course.
public float floatValue()
Parameters: The method does not accepts any parameter.
Return Value: The method returns the numeric value represented by this object after converting it to type float.
Below programs illustrate the java.lang.Integer.floatValue() method: