---
schema_version: "1"
id: ea8b26573a6fcb82044cdad8ed7f19478c013f5300f719124d3028253ca7d849
title: Numbers (dw::core::Numbers)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-numbers.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-numbers
source_site: docs.mulesoft.com
content_type: documentation
content_hash: a2df0442b1761a5d57d3ea0a53aa6c4187f1a2e2627b008d886c723f222273fa
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# Numbers (dw::core::Numbers)

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

This module contains helper functions for working with numbers.

To use this module, you must import it to your DataWeave code, for example, by adding the line
`import * from dw::core::Numbers` to the header of your DataWeave script.

_Introduced in DataWeave version 2.2.0._

## Functions

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-numbers-functions-frombinary">fromBinary</a></p></td><td><p>Transforms from a binary number into a decimal number.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-numbers-functions-fromhex">fromHex</a></p></td><td><p>Transforms a hexadecimal number into decimal number.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-numbers-functions-fromradixnumber">fromRadixNumber</a></p></td><td><p>Transforms a number in the specified radix into decimal number</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-numbers-functions-tobinary">toBinary</a></p></td><td><p>Transforms a decimal number into a binary number.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-numbers-functions-tohex">toHex</a></p></td><td><p>Transforms a decimal number into a hexadecimal number.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-numbers-functions-toradixnumber">toRadixNumber</a></p></td><td><p>Transforms a decimal number into a number string in other radix.</p></td></tr></tbody></table>
