I have code as below,
int x5K = 5000, x50K = 50000;
The execution of x5K * 166.2 (ie 5000*166.2) is 831000.0 & very much equal to calculators multiplication.
But the execution of x50K * 166.2 (ie 50000*166.2) is 8309999.999999.... very much different from calculators multiplication.
According to calculator the multiplication should be 8,310,000 which is huge difference.
Rounding off is also not a solution as many other multiplication statements are accurate then why 50000*166.2 is executing weirdly.
Can anyone help me out on this. Thanks