I am getting the wrong values at the time of multiplication following is my code
double tranAmt = Convert.ToDouble(5079.98);
double res = tranAmt * 100 ;
showing me result as 507997.9999999994
Expected result is 507998.0
what i am missing.
I am getting the wrong values at the time of multiplication following is my code
double tranAmt = Convert.ToDouble(5079.98);
double res = tranAmt * 100 ;
showing me result as 507997.9999999994
Expected result is 507998.0
what i am missing.