Commit d6b83d3a authored by Mark Dickinson's avatar Mark Dickinson

Merged revisions 86286 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86286 | mark.dickinson | 2010-11-07 11:24:44 +0000 (Sun, 07 Nov 2010) | 1 line

  Issue 10297: Add missing import in decimal example snippet.
........
parent 16562f41
...@@ -51,6 +51,7 @@ arithmetic. It offers several advantages over the :class:`float` datatype: ...@@ -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 alterable precision (defaulting to 28 places) which can be as large as needed for
a given problem: a given problem:
>>> from decimal import *
>>> getcontext().prec = 6 >>> getcontext().prec = 6
>>> Decimal(1) / Decimal(7) >>> Decimal(1) / Decimal(7)
Decimal('0.142857') 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