---
schema_version: "1"
id: 15c95899bd435f017a577680f08f439522c842477d6bfe70bcaf033d8e4d3229
title: fromRadixNumber
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.3/dw-numbers-functions-fromradixnumber.md
canonical_url: https://docs.mulesoft.com/dataweave/2.3/dw-numbers-functions-fromradixnumber
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 628f90221a136ec1af5d786a5b8fd0e0fdbb896578a2b8d06eeb9c61521744f9
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: DataWeave
version: 2.3
---

# fromRadixNumber

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## fromRadixNumber(String, Number): Number

Transforms a number in the specified radix into decimal number

_Introduced in DataWeave 2.2.0. Supported by Mule 4.2 and later._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>numberText</code></p></td><td><p>The number text.</p></td></tr><tr><td><p><code>radix</code></p></td><td><p>The radix number.</p></td></tr></tbody></table>

### Example

This example shows how the `fromRadixNumber` behaves under different inputs.

#### Source

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

#### Output

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