Hello,
how can I convert a variable from negative to positive.
Ideally I just want to show the value in positive but would also like to know how can I make the variable stored as positive.
Thanks !
Printable View
Hello,
how can I convert a variable from negative to positive.
Ideally I just want to show the value in positive but would also like to know how can I make the variable stored as positive.
Thanks !
Multiply it by -1?
kind regards,Code:int negative= ...
int positive= -negative;
Jos
Thanks all worked fine