summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-06-12 16:37:53 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-06-12 16:37:53 (GMT)
commitaa63c4d6f28343b7a0545393167b25500608a741 (patch)
treeaee3e1200ba1443fdef9ccc3dd4aad2818d8a306
parentfdb99f1563501b9a64f38874105028a373e7bd04 (diff)
downloadcpython-aa63c4d6f28343b7a0545393167b25500608a741.zip
cpython-aa63c4d6f28343b7a0545393167b25500608a741.tar.gz
cpython-aa63c4d6f28343b7a0545393167b25500608a741.tar.bz2
Fix mild type confusion in decimal module docstring.
-rw-r--r--Lib/decimal.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py
index 4d9dd86..828027c 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: