I have to display ratings and for that, I need increments as follows:
Multiply your rating by 2, then round using Math.Round(rating, MidpointRounding.AwayFromZero), then divide that value by 2.
Math.Round(rating, MidpointRounding.AwayFromZero)
Math.Round(value * 2, MidpointRounding.AwayFromZero) / 2
2.1m questions
2.1m answers
60 comments
57.0k users