<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_scale(number, precision):
 """Round a number or a float to a precision"""

    if precision < 1:
        return round_to_float(number, precision)
    return round_to_int(number, precision)