Java Number doubleValue() MethodLast Updated : 17 Mar 2025 The doubleValue() is a method of Java Number class which returns the value of the specified number casted as a double equivalent. This method may also involve in rounding or truncation. Syntax:Following is the declaration of doubleValue() method: Parameter:
Returns:The doubleValue() method returns the numeric value represented by this object after conversion to type double. Exceptions:NA Compatibility Version:Java 1.0 and above Example 1Output: x as integer : 123456 x as double: 123456.0 Example 2Output: Enter the Desired Value : 987654321 Double Value is: 9.87654321E8 Example 3Output: 1.234567898E9 9.34545856E8 53454.43654 7.3454587659675456E16 Next TopicJava Number Class |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India