# (abs number) [GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md) <!-- help-structure:notice --> > **Source status:** This source topic has 2 recorded inherited issue(s). [Source issue details](../../../Source%20Issues.md). <!-- /help-structure:notice --> <a id="114"></a> ## (abs number) --- Specify that number's distance from 0 (zero), disregarding direction (positive or negative). --- This function returns the absolute value of the *number*. You can use a [real number](../../../Source%20Issues.md#issue-cc58467c0f520b8c) or an [integer](../../../Source%20Issues.md#issue-815dfc13c169b384). This function takes exactly one argument. ### Examples | Code | Returns | | --- | --- | | (**abs** 56\) | 56 | | (**abs** -2.3) | 2.30000 | | (**abs** -49) | 49 | ### NOTES - Use this function to convert a negative number to a positive number, or to ensure the number is positive. - When you need to make sure a number is negative, first apply the **abs** function, and then subtract the number from 0\. **Tell me about...** [(fix number)](%28fix%20number%29.md) [(float number)](%28float%20number%29.md) [(minusp number)](IDR_LISP_B228.md) [LISP Compatibility](../LISP%20Compatibility.md) [Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md) <a id="holding"></a> ## Other versions with matching text [GstarCAD 2012](../../../../2012/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28abs%20number%29.md)