static double toDouble(O o) { if (o instanceof Number) ret ((Number) o).doubleValue(); if (o instanceof BigInteger) ret ((BigInteger) o).doubleValue(); if (o == null) ret 0.0; throw fail(o); }