public long getAggregateToMs(final Instant timeNow) {
            if (ageMs == -1) {
                return NEWEST_SENSIBLE_STAT_AGE;
            }
            final long scale = (long) Math.pow(10, precision);
            final long roundedValue = ((timeNow.toEpochMilli() - ageMs) / scale) * scale;
            return roundedValue;
        }
Used for the MySQL ROUND(number , precision) func
stroom-statistics/stroom-statistics-impl-sql/src/main/java/stroom/statistics/impl/sql/SQLStatisticAggregationTransactionHelper.java