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

# 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 ]
```
