How do you test to see if a double is equal to NaN? May 16, 2022 by IT Nursery 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