> ## 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.

# ROUND

> The ROUND function rounds a number to a specified number of decimal places. It is supported in YiDA forms, workflow design, integration & automation, and more. Specify the number and the decimal places to retain to get the rounded value.

This topic describes the syntax, parameters, and usage examples of the ROUND function.

## Supported Product Scenarios

The ROUND function is supported in the following YiDA scenarios:

* Form (main table fields)
* Form (business association rules)
* Form (validation)
* Workflow design (validation rules)
* Workflow design (association actions)
* Integration & automation
* Workflow node
* Connector

## Syntax

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

## Attributes

| Attribute   | Required | Description                                      |
| ----------- | -------- | ------------------------------------------------ |
| number      | Yes      | The number to round. Must be of the Number type. |
| num\_digits | Yes      | The number of decimal places to retain.          |

## Return Value

| Return type | Description        |
| ----------- | ------------------ |
| Numerical   | The rounded value. |

## Example

Use the `ROUND()` function to round a number to two decimal places.

## Try It Out

When a number contains decimals, specify the number of decimal places to retain.
