I'm having a very odd problem with .Net implicit rounding.
I'm trying to show an accurate percentage in a label control.
decimal rounded = Math.Round(Convert.ToDecimal(((totalCrashes * 100) / 60)), 1);
where totalCrashes == 1
I would like to return 1.6 from rounded, but I get 1.
I want to be able to show:
CrashLabel.Text = rounded.ToString("p")
and have it show: 1.6%