How to cast mpmath mpf to bit array?

时间:2019-02-18 00:18:15

标签: python numpy

Mpmath uses binary represents of mpf (arbitrary precision floats). Is there an easy way to access that bit array?

I can probably multiply it so that it becomes an integer and then use %2 or bit shift operations, but this will cause rounding errors.

0 个答案:

没有答案