Protection against NaN