summaryrefslogtreecommitdiffstats
path: root/Doc/library/math.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-06-09 06:54:45 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-06-09 06:54:45 (GMT)
commitecbdd2e9b0a5af20a2b8784ac91338739b99ce3d (patch)
tree1cc2a450f85ce75d3c9a13741a755d44640a6821 /Doc/library/math.rst
parentdd96db63f689e2f0d8ae5a1436b3b3395eec7de5 (diff)
downloadcpython-ecbdd2e9b0a5af20a2b8784ac91338739b99ce3d.zip
cpython-ecbdd2e9b0a5af20a2b8784ac91338739b99ce3d.tar.gz
cpython-ecbdd2e9b0a5af20a2b8784ac91338739b99ce3d.tar.bz2
Issue #2138: Add math.factorial().
Diffstat (limited to 'Doc/library/math.rst')
-rw-r--r--Doc/library/math.rst4
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)