I am getting this out put from the code which will follow:
49
49.000000000000000000000000001
I want to know how to fix it so I get back to 49.
decimal a = 49;
decimal b = 24;
decimal result = a / b;
decimal c = result * b;
Console.WriteLine(a);
Console.WriteLine(c);
the windows 10 calculator app get it right and its using more precision I guess. There has to be a way to fix this?