summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 5667bd2a67..758dcce9e3 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')