Name: abs Type: function Syntax: the abs of Syntax: abs() Summary: the absolute value of a number. Introduced: 1.0 OS: mac, windows, linux, ios, android Platforms: desktop, server, mobile Example: abs(14) Example: the abs of -14 Example: abs(firstNum - secondNum) Example: abs(secondNum - firstNum) Parameters: number: A positive or negative number, or any expression that evaluates to a number. Returns: The a positive number. Description: Use the if you need to know the magnitude of the number and are not concerned about whether it is negative or not. The absolute value of a is that number's distance from zero. If the is positive, its absolute value is just the number; if the is , its absolute value is the of the number. Because of this, the absolute value of a number is always positive. References: function (control structure), trunc (function), round (function), negative (glossary), return (glossary) Tags: math