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.

Author Antony.Lee
Recipients Antony.Lee, docs@python
Date 2019-05-31.08:52:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559292737.06.0.619691147167.issue37109@roundup.psfhosted.org>
In-reply-to
Content
https://docs.python.org/3/library/math.html says

The following functions are provided by this module. Except when explicitly noted otherwise, all return values are floats.

and

math.factorial(x)
Return x factorial. Raises ValueError if x is not integral or is negative.

but math.factorial returns an int (which is perfectly reasonable and just needs to be documented):

In [3]: math.factorial(5)                                                                                                                                                                                                                   
Out[3]: 120
History
Date User Action Args
2019-05-31 08:52:17Antony.Leesetrecipients: + Antony.Lee, docs@python
2019-05-31 08:52:17Antony.Leesetmessageid: <1559292737.06.0.619691147167.issue37109@roundup.psfhosted.org>
2019-05-31 08:52:17Antony.Leelinkissue37109 messages
2019-05-31 08:52:16Antony.Leecreate