#include #include #include #define D1 "0.9999999999999998" #define D2 "0.9999999999999999" #define D3 "1.0000000000000000" #define D4 "1.0000000000000001" #define D5 "1.0000000000000002" #define D6 "1.0000000000000003" #define D7 "1.0000000000000004" #define D8 "1.0000000000000005" using namespace std; int main() { cout << setprecision(30); double d1=stod(D1); double d2=stod(D2); double d3=stod(D3); double d4=stod(D4); double d5=stod(D5); double d6=stod(D6); double d7=stod(D7); double d8=stod(D8); cout << "d1 = " << D1 << " = " << d1 << endl; cout << "d2 = " << D2 << " = " << d2 << endl; cout << "d3 = " << D3 << " = " << d3 << endl; cout << "d4 = " << D4 << " = " << d4 << endl; cout << "d5 = " << D5 << " = " << d5 << endl; cout << "d6 = " << D6 << " = " << d6 << endl; cout << "d7 = " << D7 << " = " << d7 << endl; cout << "d8 = " << D8 << " = " << d8 << endl; cout << endl; if (d4 == 1 ) { cout << "Για τον υπολογιστή d4 ίσον 1 ?!!!\n";} if (d5 == d6) { cout << "Για τον υπολογιστή d5 ίσον d6 ?!!!\n";} if (d7 == d8) { cout << "Για τον υπολογιστή d7 ίσον d8 ?!!!\n";} } //==================================================================