Java Integer doubleValue() method
The doubleValue() method is a static method of Integer class under java.lang package. This method returns the value of this Integer as a double equivalent. This method is specified by Number class and may involve rounding or truncation.
Following is the declaration of doubleValue() method:
The doubleValue() method returns the numeric value represented by this object after conversion to type double.
Java 1.2 and above
Example 1Test it Now
Double value of the object is = 23.45 Double value of the object is = 55.0
Enter the Desired Value : 45654 Double Value is: 45654.0
Enter the Integer Value : 5745 X = 5745.0 Y = 6.4543736E7
Example 4Test it Now
The first object in double is = 452.0 The second object in double is = 1.23233243564578E14