You’re doing it wrong

Don’t use Double.NaN when you meant to say zero. Zero is, amazingly, a number.

Advertisements