summaryrefslogtreecommitdiffstats
path: root/Doc/library/math.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/math.rst')
-rw-r--r--Doc/library/math.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index d0b03ed..36cdbce 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -31,6 +31,14 @@ Number-theoretic and representation functions:
should return an :class:`Integral` value.
+.. function:: copysign(x, y)
+
+ Return *x* with the sign of *y*. ``copysign`` copies the sign bit of an IEEE
+ 754 float, ``copysign(1, -0.0)`` returns *-1.0*.
+
+ ..versionadded:: 2.6
+
+
.. function:: fabs(x)
Return the absolute value of *x*.