I have the following code:
float f = 0.3f; double d1 = System.Convert.ToDouble(f); double d2 = System.Convert.ToDouble(f.ToString());
The r
I use decimal cast for correct result in this case and same other case
float ff = 99.95f; double dd = (double)(decimal)ff;