import numpy as np def rounding(array, num): return list(np.around(np.array(array), num))