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.
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:
Attention reader! Don’t stop learning now. Get hold of all the important Java and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready.
- Number.floatValue() method in java with examples
- BigInteger floatValue() Method in Java
- Byte floatValue() method in Java with examples
- Short floatValue() method in Java with Example
- LongAdder floatValue() method in Java with Examples
- DoubleAdder floatValue() method in Java with Examples
- LongAccumulator floatValue() method in Java with Examples
- AtomicInteger floatValue() method in Java with examples
- AtomicLong floatValue() method in Java with examples
- DoubleAccumulator floatValue() method in Java with Examples
- BigDecimal floatValue() Method in Java with Examples
- Double floatValue() in Java with Examples
- Float floatValue() in Java with examples
- Program to Convert Set of Integer to Array of Integer in Java
- Integer.MAX_VALUE and Integer.MIN_VALUE in Java with Examples
- Integer.valueOf() vs Integer.parseInt() with Examples
- Java.lang.Integer class in Java
- Java Integer compareTo() method
- Java Integer compareUnsigned() method
- Java Integer compare() method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.