docs: @VisibleForTesting
      protected static String createLabelText(
              final DistanceUnit scaleUnit, final double value, final DistanceUnit intervalUnit) {
          double scaledValue = scaleUnit.convertTo(value, intervalUnit);
  
          // assume that there is no interval smaller then 0.0001
          scaledValue = Math.round(scaledValue * 10000) / 10000;
          String decimals = Double.toString(scaledValue).split("\\.")[1];
  
          if (Double.valueOf(decimals) == 0) {
              return Long.toString(Math.round(scaledValue));
          } else {
              return Double.toString(scaledValue);
          }
      }