how do I handle it? simple:

if d>. and d ^= 0 then x = n/d;

no need to recode various kinds of missing values