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

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