[docs] A suggestion to change decimal module docstring
Georg Brandl
georg at python.org
Sat Jun 12 18:20:46 CEST 2010
-----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