mdickinson / bigfloat

Python wrapper for MPFR, providing high-precision floating-point arithmetic
GNU Lesser General Public License v3.0
43 stars 11 forks source link

byte pattern representation of a bigfloat? #114

Open rjfarmer opened 4 years ago

rjfarmer commented 4 years ago

Is it possible to convert a bigfloat number into its underlying byte pattern? I'm trying to convert to/from quad precision numbers between fortran/python (with bigfloat storing things python side) and using a (ctypes.c_ubyte * 16) array to pass to fortran.

Thanks

jiahzhang commented 1 year ago

Were you able to find a way to get the byte pattern?

rjfarmer commented 1 year ago

No