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

# floor

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

## floor(number: Number): Number

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

### Example

This example rounds numbers down to the nearest whole numbers. Notice that `1.5` rounds down to `1`.

#### Source

```DataWeave
%dw 2.0
output application/json
---
[ floor(1.5), floor(2.2), floor(3) ]
```

#### Output

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