main()
{
double d1 = 1234.1;
cout << "d1 = 1234.1 --> " << d1 << endl;
double d2 = 1234.099999;
cout << "d2 = 1234.099999 --> " << d2 << endl;
}
Output:
d1 = 1234.1 --> 1234.1
d2 = 1234.099999 --> 1234.1
How can I get the exact value for d2 ? Please suggest.