Skip to content

Commit 4612671

Browse files
akshaysharma096csabella
authored andcommitted
bpo-25735: math.factorial doc should mention integer return type (GH-6420)
1 parent 8cbb5b6 commit 4612671

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Doc/library/math.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Number-theoretic and representation functions
5050

5151
.. function:: factorial(x)
5252

53-
Return *x* factorial. Raises :exc:`ValueError` if *x* is not integral or
53+
Return *x* factorial as an integer. Raises :exc:`ValueError` if *x* is not integral or
5454
is negative.
5555

5656

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added documentation for func factorial to indicate that returns integer values

0 commit comments

Comments
 (0)