np.set_printoptions(suppress=True) code example Example: np print precision np.set_printoptions(precision=4)