code: public static RubyRange<Double> range(double start, double end) {
      String startStr = String.valueOf(start);
      String endStr = String.valueOf(end);
      int startPrecision = startStr.length() - startStr.lastIndexOf('.') - 1;
      int endPrecision = endStr.length() - endStr.lastIndexOf('.') - 1;
      return new RubyRange<>(
          new DoubleSuccessor(Math.max(startPrecision, endPrecision)), start, end,
          Interval.CLOSED);
    }
docs: Creates a {@link RubyRange} by given doubles.
  
  @param start
  of the range
  @param end
  of the range
  @return {@link RubyRange}