103
Java Short floatValue() Method
The floatValue() method of Java Short class returns the Short object value into float.
Syntax
Parameters
N/A
Exception
N/A
Return value
This floatValue(method) returns float value corresponding to Short object.
Example 1
Output:
Returned float value of Short is = 100.0
Example 2
Output:
Returned float value of Short is = -135.0
Example 3: ( Old deprecated style)
Output:
Returned float value of Short is = 35.0
Next TopicJava Short