You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inacurrate documentation regarding return type of math.factorial #81290
bpo-25735: math.factorial doc should mention integer return type
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-05-31.09:29:34.573>created_at=<Date2019-05-31.08:52:17.040>labels= ['3.8', 'docs']
title='Inacurrate documentation regarding return type of math.factorial'updated_at=<Date2019-05-31.16:44:19.565>user='https://github.com/anntzer'
Activity
anntzer commentedon May 31, 2019
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
but math.factorial returns an int (which is perfectly reasonable and just needs to be documented):
In [3]: math.factorial(5)
Out[3]: 120
tirkarthi commentedon May 31, 2019
Is this same as bpo-25735 ?
anntzer commentedon May 31, 2019
oops, missed that, thanks for pointing that out.
csabella commentedon May 31, 2019
Thanks for pointing out the other issue. I've now merged it.