|
long a = 116;
long b = 20;
long c = 43;
long d = (a + (double) b / 60 + (double) c / 3600) * 100000;
cout << "d =" << d << endl;
Why is the output d = 11634527?
Rounding by calculator should be 11634528.
Can anyone tell me what the problem is? How to solve it? |
|