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

## [](#mod1)mod(Number, Number): Number

剰余 (​`dividend`​ (被除数) を ​`divisor`​ (除数) で割った余り) を返します。

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

<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>dividend</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">操作の被除数となる数値。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<code>divisor</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">操作の除数となる数値。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、入力値の剰余を返します。​`mod(dividend, divisor)`​ 表記を使用することもできます (たとえば、​`mod(3, 2)`​ では ​`1`​ を返します)。

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

```DataWeave
%dw 2.0
output application/json
---
[ (3 mod 2), (4 mod 2), (2.2 mod 2) ]
```

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

```JSON
[ 1, 0, 0.2]
```