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

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