I am dividing 2 integers and looking to get an integer as a result. I want the right Math.Round()
method so when I divide, it always round to the next integer regardless of how. Here are a bunch of examples with expectations below.
int result = (6/4); // = 2
int result = (3/4); // = 1
int result = (1/4); // = 1
int result = (8/4); // = 2
int result = (9/4); // = 3
What is the correct way of doing this?