implement NaN-returning versions of built-ins