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

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