public static float Round(float Rval, int Rpl) {
    float p = (float) Math.pow(10, Rpl);
    Rval = Rval * p;
    float tmp = Math.round(Rval);
    return tmp / p;
  }
This is a utility class to calculate various type of Metrics out of raw stats
geode-core/src/main/java/org/apache/geode/management/internal/beans/MetricsCalculator.java