commit | eebb79cc690e8ab02cb7f630cfbc046df2c0f4da | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Thu Jan 03 22:32:26 2008 +0000 |
committer | Christian Heimes <christian@cheimes.de> | Thu Jan 03 22:32:26 2008 +0000 |
tree | e6eae18d02015f5adb8535f3b69cf33e1ba9eb51 | |
parent | 000a074c955a1964959ee908300ef49b41170a06 [diff] |
Added copysign(x, y) function to the math module
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 @@ 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*.