d.isNaN() instead of d == Double.NaN (same w/ Float)