added rounding to multiples of a decimal

modifications as per the comments