Normalize values for comparison.