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