PyDocs

Nav

Numeric and Mathematical Modules

copysign

math

function
  • copysign(x, y)
Return a float with the magnitude (absolute value) of x but the sign of y.

On platforms that support signed zeros, copysign(1.0, -0.0)
returns -1.0.
0 Examples
No examples for math/copysign.
See Also
No see-alsos for math/copysign
0 Notes
No notes for copysign