---
schema_version: "1"
id: af56a546e4acbf16303110530f8d2470ae0d53eebb96aaddf6dfbde94fecc0a8
title: floor
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-core-functions-floor.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-core-functions-floor
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 37868a777539fc7c64ffc8725275f888f3eecef5e4f9ef9cffee883b20890fcb
description: MuleSoft Documentation Site
release: "2.4"
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]
```