¡@

Home 

python Programming Glossary: copysign

Why python doesn't have a sign() function?

http://stackoverflow.com/questions/1986152/why-python-doesnt-have-a-sign-function

sign 's sister but no sign. In python 2.6 there is even a copysign function in math but no sign. Why bother to write a copysign.. function in math but no sign. Why bother to write a copysign x y when you could just write a sign and then get the copysign.. x y when you could just write a sign and then get the copysign directly from abs x sign y The latter would be much more clear..