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

このモジュールには、数値を操作するヘルパー関数が含まれます。

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

_DataWeave 2.2.0 で導入されました。Mule 4.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">​<a href="https://docs.mulesoft.com/jp/dataweave/2.3/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.3/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.3/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.3/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.3/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.3/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>