Closed GoogleCodeExporter closed 9 years ago
Oops, it turns out there is a binary converter that works for mpfr... sorry,
and thanks for your work on this module.
Original comment by philippl...@gmail.com
on 20 Jul 2014 at 2:34
You can either use to_binary()/from_binary() directly or use the pickle module.
The pickle module just calls to_binary()/from_binary() in the background. Here
is a simple example:
>>> import gmpy2, pickle
>>> flt = gmpy2.mpfr(1234.6789)
>>> flt == pickle.loads(pickle.dumps(flt))
True
Original comment by casevh
on 21 Jul 2014 at 2:16
Original issue reported on code.google.com by
philippl...@gmail.com
on 20 Jul 2014 at 2:27