%dw 2.0
import toHex from dw::core::Numbers
output application/json
---
{
a: toHex(-1),
b: toHex(100000000000000000000000000000000000000000000000000000000000000),
c: toHex(0),
d: toHex(null),
e: toHex(15),
}
toHex
toHex(Number): String
Transforms a decimal number into a hexadecimal number.
Introduced in DataWeave 2.2.0. Supported by Mule 4.2 and later.