Javatpoint Logo
Javatpoint Logo

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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA