# abs()

#### Table of Contents

## Overview

The **abs()** function takes a **number** as an argument, and returns the absolute value of that number, i.e., the number without a sign.

## Return Type

- Decimal

## Syntax

<variable> = <number>.abs();

(OR)

<variable> = abs(<number> );

Parameter | Description | Data type |
---|---|---|

<variable> | Variable which will contain the returned value. | DECIMAL |

<number> | The number whose absolute value will be returned. | NUMBER or DECIMAL |

## Examples

number= -15.50;

absValue = number.abs(); // returns 15.50

absValue = number.abs(); // returns 15.50