use 0.0 / 0.0 for NaN