Refactoring rounding rule.