Java Double floatVlaue() methodThe floatVlaue() 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 1Test it NowOutput: 55.05587687687 after converted to float becomes : 55.055878 Example 2Test it NowOutput: Double value = 9.87979878768757E19 Float value = 9.879799E19 Example 3Test it NowOutput: Error:(19, 24) java: double cannot be dereferenced
Next TopicJava Double
|