[Python-ideas] Python Float Update
Nick Coghlan
ncoghlan at gmail.com
Tue Jun 2 07:10:22 CEST 2015
On 2 June 2015 at 13:10, Andrew Barnert via Python-ideas
<python-ideas at python.org> wrote:
> On Jun 1, 2015, at 18:58, Steven D'Aprano <steve at pearwood.info> wrote:
>> Apart from the questions of whether such a change would be allowed by
>> the Decimal specification,
>
> As far as I know, GDAS doesn't specify anything about implicit conversion from floats. As long as the required explicit conversion function (which I think is from_float?) exists and does the required thing.
>
> As a side note, has anyone considered whether it's worth switching to IEEE-754-2008 as the controlling specification? There may be a good reason not to do so; I'm just curious whether someone has thought it through and made the case.
As far as I know, nobody has looked into it. If there aren't any
meaningful differences, we should just switch, if there are
differences, we should probably switch anyway, but it will be more
work (and hence will require volunteers willing to do that work).
Either way, the starting point would be an assessment of what the
differences are, and whether or not they have any implications for the
decimal module and cdecimal.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas
mailing list