[Python-3000] Extension: mpf for GNU MP floating point
Facundo Batista
facundobatista at gmail.com
Sun Sep 30 16:32:38 CEST 2007
2007/9/28, Rob Crowther <weilawei at gmail.com>:
> a) MPF() now takes a float or integer argument because mpf_set_str is just
Rob, there has been a *lot* of discussion about this for Decimal (see
the PEP and discussions in python-dev and python-list around the PEP
date).
The main issue here is what means the user if he calls MPF(2.3):
a) MPF("2.3")
b) MPF("2.2999999999999998")
The difficult of the choice is that a) is maybe what she expects, b)
is the value value (so why not to think she expects the real value?)
Regards,
--
. Facundo
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
More information about the Python-3000
mailing list