<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_n(x, n):
 """ Round to sig figs """

    return round(x, -int(np.floor(np.log10(x))) + (n - 1))