copysign()

Copy sign of y to x
copysign(x,y)
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


plus2net.com



Post your comments , suggestion , error , requirements etc here




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