added rounding to multiples of a decimal

modifications as per the comments
Merge pull request #342 from pramodn02/MIFOSX-433

added rounding to multiples of a decimal