round values with 0.5 numpy code example Example: python round number numpy x = np.round(x, decimals = 4)