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

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

### [](#例)例

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

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

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

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

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