HV-931 Handling NaN and Infinite numbers