Added rounding method which rounds to the desired number of sig figs.