commit | ecbdd2e9b0a5af20a2b8784ac91338739b99ce3d | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Jun 09 06:54:45 2008 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Jun 09 06:54:45 2008 +0000 |
tree | 1cc2a450f85ce75d3c9a13741a755d44640a6821 | |
parent | dd96db63f689e2f0d8ae5a1436b3b3395eec7de5 [diff] [blame] |
Issue #2138: Add math.factorial().
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 @@ 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)