Contact Free trial Login

sqrt

sqrt(Number): Number

Returns the square root of an input number.

Parameters

Name Description

number

The number to apply the operation to.

Example

This example returns the square root of an input numbers.

Source

%dw 2.0
output application/json
---
{
  "a" : sqrt(4),
  "b" : sqrt(25),
  "c" : sqrt(100)
}

Output

{
  "a": 2.0,
  "b": 5.0,
  "c": 10.0
}

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub