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.
Dude. Minus.
double d = 1.1234;
double opposite = -d;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With