Home » Java Short floatValue() method with Examples

Java Short floatValue() method with Examples

by Online Tutorials Library

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

Test it Now

Output:

Returned float value of Short is = 100.0   

Example 2

Test it Now

Output:

Returned float value of Short is = -135.0   

Example 3: ( Old deprecated style)

Test it Now

Output:

Returned float value of Short is = 35.0  

Next TopicJava Short

You may also like