<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def round_to_int(number, precision):
 """Round a number to a precision"""

    precision = int(precision)
    rounded = (int(number) + precision / 2) // precision * precision
    return rounded