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

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