You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<summary><glossarytag="return">Returns</glossary> the absolute value of a number.</summary>
<examples>
<example>abs(14)</example>
<example>the abs of -14</example>
<example>abs(firstNum - secondNum)</example>
<example>abs(secondNum - firstNum)</example>
</examples>
<description>
<p>Use the <b>abs</b> <control_sttag="function">function</control_st> if you need to know the magnitude of the number and are not concerned about whether it is negative or not.</p><p> </p><p><b>Parameters:</b></p><p>The <i>number</i> is a positive or <glossarytag="negative">negative</glossary> number, or any <glossarytag="expression">expression</glossary> that <glossarytag="evaluate">evaluates</glossary> to a number.</p><p/><p><b>Value:</b></p><p>The <b>abs</b> <control_sttag="function">function</control_st> <glossarytag="return">returns</glossary> a positive number.</p><p/><p><b>Comments:</b></p><p>The absolute value of a <i>number</i> is that number's distance from zero. If the <i>number</i> is positive, its absolute value is just the number; if the <i>number</i> is <glossarytag="negative">negative</glossary>, its absolute value is the <glossarytag="negative">negative</glossary> of the number. Because of this, the absolute value of a number is always positive.</p>