How to round a integer to the close hundred?

Try the Math.Round method. Here’s how:

Math.Round(76d / 100d, 0) * 100;
Math.Round(121d / 100d, 0) * 100;
Math.Round(9660d / 100d, 0) * 100;

Leave a Comment