if we use the following code it give the value of x is 67.0000
int a=2077;
int b=31;
float x=(float)a/(float)b;
the expected value as was mentioned should be 67.0. is there any possible way to fix it in C# language where I use visual studio 19. I saw many such problems but I did not see any true answer for it. also when I used this formula
New contributor
أ.د.احمد حسين عليوي الماجدي is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.