Page 73 - CITS - CSA - TP (Volume 2) - Hindi
P. 73
कं ूटर सॉ वेयर ए ीके शन - CITS
6 डबल
• Represents a 64-bit IEEE 754 floating-point.
• Methods include: doubleValue().
Task_Double: Here’s an example program demonstrating the use of the doubleValue() method for the Double class:
public class DoubleMethodsExample {
public static void main(String[] args) {
// Example using Double class
Double doubleValue = 2.71828;
// doubleValue()
double doubleResult = doubleValue.doubleValue();
System.out.println(“doubleValue(): “ + doubleResult);
}
}
आउटपुट:
59
CITS : IT & ITES - कं ूटर सॉ वेयर ए ीके शन - अ ास 90

