Commit efbea73f authored by Mark Dickinson's avatar Mark Dickinson

Issue 10297: Add missing import in decimal example snippet.

parent ac73abd5
......@@ -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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment