Is there a way in C++ to get the absolute value of an integer ??
if after a calculation i get a value returned -2 how can i use some function to get 2
I don't want to write
PHP Code:if(c<0) c = c -c -c ;
|
Results 1 to 5 of 5
Threaded View
|
Click Here to Expand Forum to Full Width |