Double getDoubleAttribute(Object object, String name) {
    if (object == null) {
      return (double) 0;
    }

    try {
      if (object instanceof Float) {
        return BigDecimal.valueOf((Float) object).doubleValue();
      } else if (object instanceof Double) {
        return (Double) object;
      } else {
        logger.info(
            "************************Unexpected type for attribute: {}; Expected type: {}; Received type: {}************************",
            name, Double.class.getName(), object.getClass().getName());
        return (double) 0;
      }
    } catch (Exception e) {
      logger.info("Exception occurred: ", e);
      return (double) 0;
    }
  }
function used to handle Double data type if the value for mbean for an attribute is null then
return 0.0 as default value else return the attribute value
geode-pulse/src/main/java/org/apache/geode/tools/pulse/internal/data/JMXDataUpdater.java