Return NaN if input is not a number