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

Edit
Report