The round-half-to-even() function in XQuery uses 'banker's rounding' - when a value is exactly halfway between two numbers, it rounds to the nearest even number (e.g., 2.5 rounds to 2, 3.5 rounds to 4). It doesn't simply 'round half the value' - it performs actual rounding with the half-to-even rule.