[Python-Dev] PEP 485 review (isclose())
Guido van Rossum
guido at python.org
Tue Mar 3 17:14:39 CET 2015
On Mon, Mar 2, 2015 at 10:48 PM, Chris Barker <chris.barker at noaa.gov> wrote:
> On Mon, Mar 2, 2015 at 10:39 PM, Guido van Rossum <guido at python.org>
> wrote:
>
> (*) Adding it to the decimal module would require a discussion with
>> Raymond Hettinger, but Decimal users can probably copy and paste the
>> formula from the PEP.
>>
>
> yup -- but maybe worth putting in there while we're at it. though as
> Decimal is arbitrary precision, maybe it's not needed....
>
It's not really arbitrary precision, it's decimal *floating* point with a
large but finite precision, so all the same arguments apply.
But my reasoning was more that (at least when I was last involved in the
project) the decimal module tries to stick pretty close to the IEEE 754
standard (maybe nowadays a later version?) and random Python-only additions
are controversial.
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150303/19cd361a/attachment.html>
More information about the Python-Dev
mailing list