diff options
author | Raymond Hettinger <python@rcn.com> | 2008-06-09 06:54:45 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-06-09 06:54:45 (GMT) |
commit | ecbdd2e9b0a5af20a2b8784ac91338739b99ce3d (patch) | |
tree | 1cc2a450f85ce75d3c9a13741a755d44640a6821 /Doc/library | |
parent | dd96db63f689e2f0d8ae5a1436b3b3395eec7de5 (diff) | |
download | cpython-ecbdd2e9b0a5af20a2b8784ac91338739b99ce3d.zip cpython-ecbdd2e9b0a5af20a2b8784ac91338739b99ce3d.tar.gz cpython-ecbdd2e9b0a5af20a2b8784ac91338739b99ce3d.tar.bz2 |
Issue #2138: Add math.factorial().
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/math.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst index b98f164..d6e0205 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -42,6 +42,10 @@ Number-theoretic and representation functions: Return the absolute value of *x*. +.. function:: factorial(x) + + Return *x* factorial. Raises :exc:`ValueError` if *x* is not intergral or + is negative. .. function:: floor(x) |