copysign()

All Math methods

Copy sign of y to x
copysign(x,y)
Returns x with sign of y. Data type of return value is float.

Example
print(math.copysign(3,-2))  # -3.0
print(math.copysign(-3,-2)) # -3.0
print(math.copysign(-3,2))  #  3.0
print(math.copysign(3,2))   #  3.0

Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com



    Post your comments , suggestion , error , requirements etc here





    Python Video Tutorials
    Python SQLite Video Tutorials
    Python MySQL Video Tutorials
    Python Tkinter Video Tutorials
    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2021 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer