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

# round

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

## round(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>

### 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 round.</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 ]
```
