---
schema_version: "1"
id: 7c8cb92083e091f72ed511a91c841b6e84dcedbc8149b571717130b20a5a61a2
title: toRadixNumber
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.3/dw-numbers-functions-toradixnumber.md
canonical_url: https://docs.mulesoft.com/dataweave/2.3/dw-numbers-functions-toradixnumber
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 8d222d7108f4853622b0a8f409181fdb4bb1db6748fa25db925ef7853bfcac97
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: DataWeave
version: 2.3
---

# toRadixNumber

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

## toRadixNumber(Number, Number): String

Transforms a decimal number into a number string in other radix.

_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>number</code></p></td><td><p>The decimal number.</p></td></tr><tr><td><p><code>radix</code></p></td><td><p>The radix of the result number.</p></td></tr></tbody></table>

### Example

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

#### Source

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

#### Output

```JSON
{
  "a": "10",
  "b": "ff"
}
```
