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

## [](#abs1)abs(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>

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

<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>

### [](#例)例

次の例では、指定された数値の絶対値を返します。

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

```DataWeave
%dw 2.0
output application/json
---
[ abs(-2), abs(2.5), abs(-3.4), abs(3) ]
```

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

```JSON
[ 2, 2.5, 3.4, 3 ]
```