Numbers (dw::core::Numbers)

This module contains helper functions to work 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 2.2.0. Supported by Mule 4.2 and later.


Name Description


Transforms from a binary number into a decimal number.


Transforms a hexadecimal number into decimal number.


Transforms a number in the specified radix into decimal number


Transforms a decimal number into a binary number.


Transforms a decimal number into a hexadecimal number.


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

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub
Submit your feedback!
Share your thoughts to help us build the best documentation experience for you!
Take our latest survey!