Message344039
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 |
|
Date |
User |
Action |
Args |
2019-05-31 08:52:17 | Antony.Lee | set | recipients:
+ Antony.Lee, docs@python |
2019-05-31 08:52:17 | Antony.Lee | set | messageid: <1559292737.06.0.619691147167.issue37109@roundup.psfhosted.org> |
2019-05-31 08:52:17 | Antony.Lee | link | issue37109 messages |
2019-05-31 08:52:16 | Antony.Lee | create | |
|