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

# ceil

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

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