Is there an efficient and smooth way to write a code which switches NaN to zero?
I want to calculate several percentage values, which gives me NaN, if the divisor is