79541129

Date: 2025-03-28 10:13:06
Score: 2.5
Natty:
Report link

get 1 solid answer from gmpy2 maintainer.

One last comment: the values of precision, emax and emin are slight different between the IEEE standards and the MPFR library. If e is the exponent size and p is the precision (in IEEE terms), then precision should be p+1,emax should be 2**(e-1) and emin should be 4-emax-precision. This doesn't impact your question since it only changes emax.

but in which document can i find this? i take a glance and do search in official gmpy document https://gmpy2.readthedocs.io/en/latest/mpfr.html, find nothing regarding this. why emin/emax/precision set that value? why not directly as emax=15, emin as -14, precison as 11 directly?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: 苑克乾