How can I initialize a double variable to NaN or infinity?

Question:

How can I initialize a double variable to NaN or infinity?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: