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


|  |  |  |  |
| --- | --- | --- | --- |
| **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

| 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)