gmp/mpir、mpfr和mpc接口到python 2.6+和3.x
gmpy2的Python项目详细描述
gmpy2是一个c编码的python扩展模块,支持多精度算法。除了支持gmp或mpir的多精度整数和有理数运算外,gmpy2还增加了对mpfr(正确舍入的实数浮点运算)和mpc(正确舍入的复杂浮点运算)库的支持。
2.0.8版有以下修复程序:
- Fix reference counting bug in left shift and right shift.
- Fix crash when converting string to mpfr and subnormalization is active.
- Fix int(mpfr) for negative values.
- Fix data corruption bug when using pack() on a list that contains instances of the mpz type.
2.0.7版有以下修复程序:
- math.floor(gmpy2.mpfr(‘inf’)) no longer segfaults.
- The “wheel” format is used for the Windows binaries.
2.0.6版有以下修复程序:
- setup.py no longer changes the meaning of –prefix.
- Using the ‘X’ format code now works properly (convert to hex using upper-case letters).