code: public static int decodeRealNumberRangeInt(String value, int offsetValue) {
          long offsetNumber = Long.parseLong(value, 10);
          return (int) (offsetNumber - offsetValue);
      }
docs: Decodes integer value from the string representation that was created by using
  encodeRealNumberRange(..) function.
  
  @param value
  string representation of the integer value
  @param offsetValue
  offset value that was used in the original encoding
  @return original integer value