I want to know how I could round to the nearest 100, when a value is truncated. I was using this:
private static int CalculatePaperLevel(int paperLevel)
{
int roundedLevel = 0;
roundedLevel = ((int)Math.Round(paperLevel / 10.0) * 10);
return roundedLevel;
}
but this, is what I want
E.G. 191 -> 100
224 -> 200
140 -> 100
295 -> 200