Is there an alternative way to manually find the absolute value of a number?
<p>I was wondering if there was a different way of getting the absolute value of a number besides doing:</p>

<pre><code>return x &lt; 0 ? -x : x;
</code></pre>

<p>Is there a different (preferably shorter) way? If there is, please post an answer showing how to so with code. (By manually I mean without using a built in function like <code>Math.abs</code>)</p>
