diff options
| author | Mark Dickinson <dickinsm@gmail.com> | 2010-11-07 11:29:03 +0000 |
|---|---|---|
| committer | Mark Dickinson <dickinsm@gmail.com> | 2010-11-07 11:29:03 +0000 |
| commit | 5dacdf661656df4df9f936eaad776a94b70529d0 (patch) | |
| tree | a4a9f9cef3e0decd8bce61099b27481f2b85ccae | |
| parent | 1d0e694ea825dfdc86e4d6c17916c010b5024c80 (diff) | |
| download | cpython-5dacdf661656df4df9f936eaad776a94b70529d0.tar.gz | |
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.
........
| -rw-r--r-- | Doc/library/decimal.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index 2ab138d2d1..357882f871 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -57,6 +57,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') |
