Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add a heading to separate the describe from methods
  • Loading branch information
encukou committed May 31, 2024
commit dbadd172e2ffba1c66e1ccd4cb597da3576a06cd
2 changes: 2 additions & 0 deletions Doc/library/decimal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,8 @@ Decimal objects
:const:`Rounded`. If given, applies *rounding*; otherwise, uses the
rounding method in either the supplied *context* or the current context.

Decimal numbers can be rounded using the :func:`.round` function:

.. describe:: round(number, ndigits=None)

If *ndigits* is ``None``, returns the nearest :class:`int` to *number*,
Expand Down