---
title: "abs"
canonical: "https://support.appfire.com/space/PSCONF/15303422/abs"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | abs(number) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns the absolute value of a number. The absolute value of a number is the number without its sign.

Returns the absolute value of a number. The absolute value of a number is the number without its sign.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | number | Number | Yes | Number to get the absolute value for. |

## Return Type

**Number**

## Example

```javascript
number a = abs(4); 
number b = abs(-4);
print("a= " + a);
print("b= " + b);
```

Print: a= 4;

         b= 4;

## See also

> Macro (contentbylabel)