--- title: "abs()" slug: "math-abs" updated: 2026-08-13T13:02:18Z published: 2026-08-13T13:02:18Z canonical: "docs.lobstersoftware.com/math-abs" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # abs() This function returns the absolute value of **a**. ## Parameters | Parameter | Description | | --- | --- | | a | Value | ## Examples | Parameter a | Result | | --- | --- | | | 0 | | false | true | | 123 | 123 | | -123 | 123 | | 123.45 | 123.45 | | -123.45 | 123.45 | | Text | 0 | | -123.450 | 123.45 | | -123.450 | 123.450 **NOTE:** If you want to preserve the number of decimal places (see also previous example), please use a suitable data type and a corresponding template for the field on which you execute the function. Here, for example, the data type *BigDecimal* and the template*####0.000* |