static DoubleRange intToDoubleRange(double factor default 1, IntRange r) { ret r == null ? null : doubleRange(r.start*factor, r.end*factor); }