Pretty straightforward, but I just want to know which is faster.
I think simply multiplying a number by -1 is much faster than calling a predefined method, provided that you are sure that value is negative.
But if that's the case then what is the abs() function for? Is it simply for making sure that the value returned would always be positive regardless of value's sign?