Float doubleValue() method in Java with examples
The doubleValue() method of Float class is a built in method to return the value specified by the calling object as double after type casting.
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course.
Return Value: It return the double value of this Float object.
Below programs illustrate doubleValue() method in Java:
Float value of 17.65 is : 17.649999618530273
Float value of 6.0 is : 6.0