From: Mark Dickinson Date: Sat, 12 Jun 2010 16:37:53 +0000 (+0000) Subject: Fix mild type confusion in decimal module docstring. X-Git-Tag: v3.2a1~545 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa63c4d6f28343b7a0545393167b25500608a741;p=thirdparty%2FPython%2Fcpython.git Fix mild type confusion in decimal module docstring. --- diff --git a/Lib/decimal.py b/Lib/decimal.py index 4d9dd86530a4..828027cd6150 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -31,7 +31,8 @@ issues associated with binary floating point. The package is especially useful for financial applications or for contexts where users have expectations that are at odds with binary floating point (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). +of 0.0; Decimal('1.00') % Decimal('0.1') returns the expected +Decimal('0.00')). Here are some examples of using the decimal module: