How can I reverse then sign of one number ?
EX : varNumber = 12 - 14
Result varNumber = -2
I wnat varNumber positiv 2
Exist any function for this ?
Thank you man .
In the strict sense, to reverse the sign of any number, then multiply by -1. That will reverse the positive sign to a negative sign, and a negative sign to a positive sign.
If, on the other hand, you only want to reverse negative numbers, that is you always want a positive number, then both foada and swi have provided the best solution for that. Good Luck
-------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.