static bool isExact(Object x) { if (!(x is Double)) return false; double d = num(x); return (d == Math.Round(d) && Math.Abs(d) < 102962884861573423.0); }