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