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.

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.