--- title: "abs" description: "Returns the absolute value of number." --- # abs > Returns the absolute value of number. **This function is used by Ignition's Expression language.** ## Description ## Syntax `abs(number)` - Parameters - int/float **number** - The number to get the absolute value of. - Results - int/float - The absolute value of the number provided. ## Examples ```python title="Code Snippet" abs(-4) //returns 4 ```