title: get absolute value without using abs function nor if statement
body: <p>I was thinking how to get the absolute value of an integer without using <code>if</code> statement nor <code>abs()</code>. At first I was using shift bits left (<code>&lt;&lt;</code>), trying to get negative sign out of the range, then shift bits right back to where it be, but unfortunately it doesn't work for me. Please let me know why it isn't working and other alternatives ways to do it. </p>