It depends on the context. Sometimes NaNs are expected and to be ignored. Sometimes they signal a problem.