Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Add an example for truncation.
  • Loading branch information
serhiy-storchaka committed May 29, 2024
commit 944dc6c5f96a086658ba980844ff8a9c1a45cde4
2 changes: 2 additions & 0 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,8 @@ are always available. They are listed here in alphabetical order.

.. doctest::

>>> int(123.45)
123
>>> int('123')
123
>>> int(' -12_345\n')
Expand Down