---
schema_version: "1"
id: ece81a59097187593074b101ce93f2fa9b78123f8f793fc8de37e2d0a2186b01
title: fromRadixNumber
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.5/dw-numbers-functions-fromradixnumber.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.5/dw-numbers-functions-fromradixnumber
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 062e8f766c62d03206d8c448df916120f6fa08bd5a5bc15033f4b5b5eaa32a78
description: MuleSoft Documentation Site
release: "2.5"
latest: false
---
# fromRadixNumber

## [](#fromradixnumber1)fromRadixNumber(numberStr: String, radix: Number): Number

指定された基数の数値を 10 進数に変換します。

_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"><code>numberText</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">数値テキスト。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>radix</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">基数。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、さまざまな入力での ​`fromRadixNumber`​ の動作を示します。

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

```DataWeave
%dw 2.0
import fromRadixNumber from dw::core::Numbers
output application/json
---
{
    a: fromRadixNumber("10", 2),
    b: fromRadixNumber("FF", 16)
}
```

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

```JSON
{
  "a": 2,
  "b": 255
}
```