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

# ceil

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

## ceil(number: Number): Number

Rounds a number up 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 round.</p></td></tr></tbody></table>

### Example

This example rounds numbers up to the nearest whole numbers. Notice that `2.1` rounds up to `3`.

#### Source

```DataWeave
%dw 2.0
output application/json
---

[ ceil(1.5), ceil(2.1), ceil(3) ]
```

#### Output

```JSON
[ 2, 3, 3 ]
```
