sbool isNonZero(double d) { ret !isNaN(d) && d != 0; }