summaryrefslogtreecommitdiffstats
path: root/Doc/library/decimal.rst
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-11-07 11:24:44 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-11-07 11:24:44 (GMT)
commit43ef32ae364930c12ee1ccf522c4fe75e6ea3d7f (patch)
tree871897bf562e606d8c7b0248c52c213ed04c0db8 /Doc/library/decimal.rst
parentcdc8cdd215fc54365861577bb9c347730a7f6473 (diff)
downloadcpython-43ef32ae364930c12ee1ccf522c4fe75e6ea3d7f.zip
cpython-43ef32ae364930c12ee1ccf522c4fe75e6ea3d7f.tar.gz
cpython-43ef32ae364930c12ee1ccf522c4fe75e6ea3d7f.tar.bz2
Issue 10297: Add missing import in decimal example snippet.
Diffstat (limited to 'Doc/library/decimal.rst')
-rw-r--r--Doc/library/decimal.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst
index e82929c..d0dedda 100644
--- a/Doc/library/decimal.rst
+++ b/Doc/library/decimal.rst
@@ -51,6 +51,7 @@ arithmetic. It offers several advantages over the :class:`float` datatype:
alterable precision (defaulting to 28 places) which can be as large as needed for
a given problem:
+ >>> from decimal import *
>>> getcontext().prec = 6
>>> Decimal(1) / Decimal(7)
Decimal('0.142857')