---
schema_version: "1"
id: c6d916a36febf1a5f9b8c6d360825d09c0f43e992856c09f10d16586d6916794
title: round
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.12/dw-core-functions-round.md
canonical_url: https://docs.mulesoft.com/dataweave/2.12/dw-core-functions-round
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 68f91a1f6aff6dfd942ce9cdb6965ed676e1ccc89eabeefc60056549908c24cf
description: MuleSoft Documentation Site
release: "2.12"
latest: false
---
---
product: DataWeave
version: 2.12
---

# round

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## round(number: Number): Number

Rounds a number up or down to the nearest whole number.

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>number</code></p></td><td><p>The number to evaluate.</p></td></tr></tbody></table>

### Example

This example rounds decimal numbers to the nearest whole numbers.

#### Source

```DataWeave
%dw 2.0
output application/json
---
[ round(1.2), round(4.6), round(3.5) ]
```

#### Output

```JSON
[ 1, 5, 4 ]
```
