/** * Returns a string representing the current running average, but will use * the new precision rather than the one in the constructor. * <br> * NOTE: Will use a readLock to get a thread-safe version. * @return */ public String toString(int temporaryPrecision) { return DecimalUtil.toString(getAverage(), temporaryPrecision); }
/** * Returns a string representing the current running average. Will return * a String of the double with the precision set in the constructor. * <br> * NOTE: Will use a readLock to get a thread-safe version. * @return */ @Override public String toString() { return DecimalUtil.toString(getAverage(), precision); }
/** * Returns a string representing the current running average. Will return * a String of the double with the precision set in the constructor. * <br> * NOTE: Will use a readLock to get a thread-safe version. * @return */ @Override public String toString() { return DecimalUtil.toString(getAverage(), precision); }
/** * Returns a string representing the current running average, but will use * the new precision rather than the one in the constructor. * <br> * NOTE: Will use a readLock to get a thread-safe version. * @return */ public String toString(int temporaryPrecision) { return DecimalUtil.toString(getAverage(), temporaryPrecision); }