int i = 312; Console.WriteLine(Math.Ceiling(i / 100.0d) * 100);
int x = 235; int remainder = x % 100; if (remainder > 0) { x = x + (100 - remainder); }
x = ((x + (100 - 1)) / 100) * 100
x
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)