The floatValue()  method of Integer class returns a float value for this Integer after a widening primitive conversion.

 Syntax

public float floatValue()

 Parameters

NA

 Specified by

This method is specified by floatValue in class Number

 Return Value

This method returns the numeric value of this object after conversion to type float.

Example 1

Output

Example 2

Output

Example 3

Output

Pin It on Pinterest

Share This