index 7052985..b491bcf 100644 |
--- a/Doc/library/decimal.rst |
+++ b/Doc/library/decimal.rst |
@@ -862,6 +862,14 @@ Decimal objects |
:const:`Rounded`. If given, applies *rounding*; otherwise, uses the |
rounding method in either the supplied *context* or the current context. |
+ .. method:: __format__(format) |
+ |
+ Format as string using the given ``format``. |
+ |
+ This makes it possible to specify format string for a :class:`Decimal` |
+ object when using :meth:`str.format`. For a complete list of formatting |
+ directives, see :ref:`formatspec`. |
+ |
.. _logical_operands_label: |