Java AtomicLong floatValue() Method

The floatValue() method of java AtomicLong class returns the value of the specified number as a float.

Syntax

Returns

the numeric value represented by this object after conversion to type float

Example 1

Test it Now

Output:

0.0

Example 2

Test it Now

Output:

654321.0

Example 3

Test it Now

Output:

-123456.0

Example 4

Test it Now

Output:

-21.0 




Latest Courses