---
schema_version: "1"
id: d8d6e2b8f7d694f7279ca3612cec5423159a0b6b0318fe5791e593592aac89d0
title: ceil
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-core-functions-ceil.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-core-functions-ceil
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 2a8407ebbd56e5f2711c787a5bef36dfc951ebb504b763c5985b9c3a1199e0a4
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

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