bpo-25735: math.factorial doc should mention integer return type (GH-6420)
(cherry picked from commit 4612671df2
)
Co-authored-by: Akshay Sharma <akshay.sharma09695@gmail.com>
This commit is contained in:
parent
8135455c84
commit
fc3b8437c8
|
@ -50,7 +50,7 @@ Number-theoretic and representation functions
|
||||||
|
|
||||||
.. function:: factorial(x)
|
.. function:: factorial(x)
|
||||||
|
|
||||||
Return *x* factorial. Raises :exc:`ValueError` if *x* is not integral or
|
Return *x* factorial as an integer. Raises :exc:`ValueError` if *x* is not integral or
|
||||||
is negative.
|
is negative.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Added documentation for func factorial to indicate that returns integer values
|
Loading…
Reference in New Issue