round to nearest integer half up code example Example: round to nearest half Math.Round(value * 2, MidpointRounding.AwayFromZero) / 2