> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# ABS

> ABS函数用于计算数字的绝对值，支持在宜搭的表单、流程设计、集成自动化等多种场景中使用。通过格式ABS(number)进行调用，其中number为必需参数。该函数返回数值类型的绝对值结果。

ABS函数用于计算某个数字的绝对值。

## 支持产品场景

ABS函数支持在宜搭的以下场景中使用。

* 表单（主表字段）
* 表单（业务关联规则）
* 表单（校验）
* 流程设计（校验规则）
* 流程设计（关联操作）
* 集成自动化
* 流程-节点
* 连接器

## 格式

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
ABS(number)
```

## 属性说明

| 属性     | 是否必填 | 说明               |
| ------ | ---- | ---------------- |
| number | 是    | 数字类型，需要计算绝对值的数字。 |

## 返回值

| 返回值类型 | 说明          |
| ----- | ----------- |
| 数值    | 通过计算得到的绝对值。 |

## 使用示例

如下图所示，使用`ABS()`函数获取一个数字的绝对值。

<Frame>
  ![](https://yida-support.oss-cn-shanghai.aliyuncs.com/static/png/1704252827395-3024f046-e420-4c77-b428-663207d6eefe.png)
</Frame>

## 体验

当数值为负数的时候返回这个数的绝对值。
