code: private static String convertPercentElementToString(Object value, DecimalFormat decimalFormat) {
          Double doubleValue = value instanceof Long ? ((Long) value).doubleValue() : (Double) value;
          return decimalFormat.format(doubleValue);
      }
docs: The function to convert a percent element into a string.
  
  @param value         the input numeric value to convert.
  @param decimalFormat the formatter to convert percentage element into string.
  @return the string with the text presentation of the input numeric value.