diff options
Diffstat (limited to 'Doc/library/decimal.rst')
-rw-r--r-- | Doc/library/decimal.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index 43f4b4a..b559ff5 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -999,8 +999,11 @@ In addition to the three supplied contexts, new contexts can be created with the a large number of methods for doing arithmetic directly in a given context. In addition, for each of the :class:`Decimal` methods described above (with the exception of the :meth:`adjusted` and :meth:`as_tuple` methods) there is - a corresponding :class:`Context` method. For example, ``C.exp(x)`` is - equivalent to ``x.exp(context=C)``. + a corresponding :class:`Context` method. For example, for a :class:`Context` + instance ``C`` and :class:`Decimal` instance ``x``, ``C.exp(x)`` is + equivalent to ``x.exp(context=C)``. Each :class:`Context` method accepts a + Python integer (an instance of :class:`int` or :class:`long`) anywhere that a + Decimal instance is accepted. .. method:: clear_flags() |