round elements in a numpy array to 2 decimals code example Example: python round number numpy x = np.round(x, decimals = 4)