Implemented roundTo and refactored equalRounded