> `float(repr(a)) == a` is guaranteed for Python `float`

And `np.float16(repr(a)) == a` is guaranteed for `np.float16`(and the same
is true up to `float128`, which can be platform-dependent). Your code
doesn't work because you're deserializing to a higher precision format than
you serialized to.

View this message in context: 
Sent from the Numpy-discussion mailing list archive at Nabble.com.
NumPy-Discussion mailing list

Reply via email to