---
schema_version: "1"
id: 4ddbc7ecdb4a947aaba18fb6637f40bd4423d20daafc256403ee43f0890e7c0c
title: Numbers (dw::core::Numbers)
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.6/dw-numbers.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.6/dw-numbers
source_site: docs.mulesoft.com
content_type: documentation
content_hash: bddfecf6590d0ef29017c2a27d43ca60e0493e7e401cd0545e17b43f10e3b284
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
# Numbers (dw::core::Numbers)

このモジュールには、数値を処理するためのヘルパー関数が含まれます。

このモジュールを使用するには、DataWeave コードにインポートする必要があります。その方法として、たとえば、行 ​`import * from dw::core::Numbers`​ を DataWeave スクリプトの ヘッダーに追加します。

_DataWeave バージョン 2.2.0 で導入されました。_

## [](#関数)関数

<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"><a href="https://docs.mulesoft.com/jp/dataweave/2.6/dw-numbers-functions-frombinary" class="xref page">fromBinary</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">2 進数から 10 進数に変換します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.6/dw-numbers-functions-fromhex" class="xref page">fromHex</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">16 進数を 10 進数に変換します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.6/dw-numbers-functions-fromradixnumber" class="xref page">fromRadixNumber</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">指定された基数の数値を 10 進数に変換します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.6/dw-numbers-functions-tobinary" class="xref page">toBinary</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">10 進数を 2 進数に変換します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.6/dw-numbers-functions-tohex" class="xref page">toHex</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">10 進数を 16 進数に変換します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.6/dw-numbers-functions-toradixnumber" class="xref page">toRadixNumber</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">10 進数を他の基数の数値文字列に変換します。</p></td>
</tr>
</tbody>
</table>