I have a double in Java and I want to check if it is NaN. What is the best way to do this? 7 Answers 7 Tags: doubleequalityjavanan