I am facing weird issue. I know double and float are fundamentally different. But for value like 11.9 also it is getting changed. I have by pass the issue by changed the type everywhere but I just want to know the reason why it is getting changed.
Here is snippet code
float sf = float.Parse ("11.9");
double sdo = double.Parse ("11.9");
double sd2 = (double)sf;
Console.WriteLine (sdo); // 11.9
Console.WriteLine (sd2); // 11.8999999999
Please let me know if any further information needed.