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

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