Free MuleSoft CONNECT Keynote & Expo Pass Available!

Register now+
Nav

sqrt

sqrt(Number): Number

Returns the square root of the provided number.

Transform

        
     
1
2
3
4
5
6
7
8
%dw 2.0
output application/json
---
{
  a: sqrt(4),
  b: sqrt(25),
  c: sqrt(100)
}
Output

        
     
1
2
3
4
5
{
  "a": 2.0,
  "b": 5.0,
  "c": 10.0
}