Java Double floatValue() methodThe floatValue() method of Double class returns a float value of this double object. SyntaxParametersNA Return valueThe floatValue() method returns the double value converted to type float . Example 1Output: 55.05587687687 after converted to float becomes : 55.055878 Example 2Output: Double value = 9.87979878768757E19 Float value = 9.879799E19 Example 3Output: Error:(19, 24) java: double cannot be dereferenced Next TopicJava-double-hashcode-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India