Renamed smoothInput() to roundInput()
Added RC_ROUNDING_BASE factor for roundInput() function