static IntRange roundToIntRange(DoubleRange r) { ret r == null ?: IntRange(iround(r.start), iround(r.end)); }