Lets say I do some arithmetic computation (like division and then addition) on int
values and then want to store the result in an int
value as well.
How do I round values up that are greater than or equal to x.5
and then round down when they are less than x.5
?
So 11.5 = 12
and 11.3 = 11