Contact Us 1-800-596-4880

Numbers (dw::core::Numbers)

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

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.