This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: trunc in documentation of numbers.Real should math.trunc
Type: Stage:
Components: Documentation Versions: Python 3.1, Python 3.2, Python 2.7, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: benjamin.peterson, docs@python, mft
Priority: normal Keywords:

Created on 2011-03-12 16:52 by mft, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg130690 - (view) Author: MATSUI Tetsushi (mft) Date: 2011-03-12 16:52
In the documentation of numbers.Real:
"In short, those are: a conversion to float, trunc(), round(), math.floor(), math.ceil(), divmod(), //, %, <, <=, >, and >=."
where only "trunc" is not linked if we look at it in html pages.
This is because the function trunc is not in built-in namespace, but in math module. So we should call it math.trunc similarly to math.floor, etc.
msg130693 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2011-03-12 18:05
7fd06773c3c2
History
Date User Action Args
2022-04-11 14:57:14adminsetgithub: 55684
2011-03-12 18:05:21benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg130693

resolution: fixed
2011-03-12 16:52:31mftcreate