I'm thinking there must be a function to do both. I think fabs will do negative to positive.
But not sure about the other way around ?
num *= -1
will change the sign from positive to negative and vice versa.
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