---
title: ABS
slug: abs
docTags: 
createdAt: 2021-07-26T08:55:33.000Z
---

Returns the absolute value of a number.

### What is ABS

The ABS function returns the absolute value of a number. In other words: the ABS function removes the minus sign (-) from a negative number, making it positive. 1. For example, the ABS function in cell B1 below returns the absolute value of a negative number.

e.g.: The absolute of -5 is 5



### API Definition

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://orca.pathfix.com/functions/number/abs",
  "name": "ABS API",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "klYqlkb8VSe36UKkILJ-U",
        "code": "{\n    \"output\": 29.45\n}",
        "language": "200"
      },
      {
        "id": "v--a3PuDS2RbZ5ElwXmrp",
        "code": "{\n    \"message\": \"error\"\n}",
        "language": "404"
      }
    ],
    "selectedLanguageId": "klYqlkb8VSe36UKkILJ-U"
  },
  "examples": {
    "languages": [
      {
        "id": "_d3HSHM5Ih_jObbg_b4px",
        "code": "{\r\n    \"input\": \"-29.46\"\r\n}",
        "language": "json"
      }
    ],
    "selectedLanguageId": "_d3HSHM5Ih_jObbg_b4px"
  },
  "description": "Call the following API:",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::












