[docs] A suggestion to change decimal module docstring
Mark Dickinson
dickinsm at gmail.com
Sat Jun 12 18:38:21 CEST 2010
Done in r81951.
Mark
On Sat, Jun 12, 2010 at 5:20 PM, Georg Brandl <georg at python.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Sounds good... someone please apply.
>
> Georg
>
> Am 12.06.2010 11:05, schrieb Mark Dickinson:
>> Suggested replacement text:
>>
>> [...] expectations that are at odds with binary floating point (for instance,
>> in binary floating point, 1.00 % 0.1 gives 0.09999999999999995 instead of 0.0;
>> Decimal('1.00') % Decimal('0.1') returns the expected Decimal('0.00')).
>>
>>
>> On Sat, Jun 12, 2010 at 4:41 AM, Alexander Belopolsky
>> <alexander.belopolsky at gmail.com> wrote:
>>> Not worth a tracker entry, so I am just sending this to docs and Mark.
>>>
>>> I find current "(for instance, in binary floating point, 1.00 % 0.1
>>> gives 0.09999999999999995 instead of the expected Decimal("0.00")
>>> returned by decimal floating point)" in the introduction a bit unclear
>>> because neither Decimal class nor it's constructor taking a string has
>>> been introduced by that point. I think it is better to just use 0.00
>>> for the "expected" value.
>>>
>> _______________________________________________
>> docs mailing list
>> docs at python.org
>> http://mail.python.org/mailman/listinfo/docs
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.15 (GNU/Linux)
>
> iEYEARECAAYFAkwTs90ACgkQN9GcIYhpnLBHywCgqbZEsaaN+yMWNMqWYsICzNFY
> HOgAnAotmwuhnYBoOiGxFZIHyIAQI/NF
> =OXX9
> -----END PGP SIGNATURE-----
>
More information about the docs
mailing list