NaNs should crash the program