Created a rounding function, trying to compose that with the mean calculation.