---
schema_version: "1"
id: ab965317bb4255cb68f3e68493bfcc134c683bd9de2145765a17ff62f57e0192
title: floor
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.7/dw-core-functions-floor.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.7/dw-core-functions-floor
source_site: docs.mulesoft.com
content_type: documentation
content_hash: b50cd7a9548d39ec5b58ab9404718bee4ab22079e4e4a7aab38f9eee6b3acf3f
description: MuleSoft Documentation Site
release: "2.7"
latest: false
---
# floor

## [](#floor1)floor(number: Number): Number

数値を最も近い整数に切り捨てます。

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>number</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">評価する数値。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、数値の小数点以下を切り捨てて最も近い整数にします。​`1.5`​ の小数点以下が 切り捨てられて ​`1`​ になっています。

#### [](#ソース)ソース

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

#### [](#出力)出力

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