---
schema_version: "1"
id: 33684145518edf4824e2aac614d915a12ade47f778f90ad3f3fa95bf7e6da1b2
title: Numbers (dw::core::Numbers)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.12/dw-numbers.md
canonical_url: https://docs.mulesoft.com/dataweave/2.12/dw-numbers
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 4cc11fa4e9f25312b659457b6f5ead44fedd9cc7b1d1807f1f5937459fb6cd77
description: MuleSoft Documentation Site
release: "2.12"
latest: false
---
---
product: DataWeave
version: 2.12
---

# 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/2.12/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/2.12/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/2.12/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/2.12/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/2.12/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/2.12/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>
