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

# floor

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

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