Added a rounding method. With tests.