“Rounding1” (Solution)
Answer
Explanation
If the number is exactly halfway between two possibilities, the following rules will work:
Math.Round rounds to the nearest even integer (by default).
Math.Floor rounds down towards the negative infinity.
Math.Ceiling rounds up towards the positive infinity.
Math.Truncate rounds down or up towards zero.
String.Format rounds towards the number away from zero.
Links
Last updated