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

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