Possible Duplicate:
Simple division
I juz wanna ask how to represent this kind of math expression in C#
a/b*100.0
i try doing this. but it does not work as the percentage display this kind of value (19) not (19.00);
int gradeA;
int students;
int percentage;
percentage = (gradeA/students*100.0);
percentLabel.Text=Convert.ToString(percentage);
thanks in advance
1 Answer