Function for flipping the sign of a number

Posted by Smoka on Stack Overflow See other posts from Stack Overflow or by Smoka
Published on 2010-06-05T20:10:33Z Indexed on 2010/06/05 21:42 UTC
Read the original article Hit count: 223

Filed under:
|
|

How can I change the sign of a number?

abs(); will not return me a negative when the input is positive, correct? I need the opposite sign.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about float