round numpy array to 2 decimal places code example Example: how to round numpy array x = np.round(x, decimal = 4)