You are viewing a single comment's thread. Return to all comments →
just put an if statment in the function testing whether the value is less than 0, and if so multiple that value by -1. ex.
if(difference < 0) difference = difference * (-1);
problem solved!
Seems like cookies are disabled on this browser, please enable them to open this website
Pointer
You are viewing a single comment's thread. Return to all comments →
just put an if statment in the function testing whether the value is less than 0, and if so multiple that value by -1. ex.
if(difference < 0) difference = difference * (-1);
problem solved!