Contact Free trial Login

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.

Functions

Name Description

fromBinary

Transforms from a binary number into a decimal number.

fromHex

Transforms a hexadecimal number into decimal number.

fromRadixNumber

Transforms a number in the specified radix into decimal number

toBinary

Transforms a decimal number into a binary number.

toHex

Transforms a decimal number into a hexadecimal number.

toRadixNumber

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

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub