Contact Free trial Login

sqrt

sqrt(Number): Number

Returns the square root of a number.

Parameters

Name Description

number

The number to evaluate.

Example

This example returns the square root of a number.

Source

%dw 2.0
output application/json
---
[ sqrt(4), sqrt(25), sqrt(100) ]

Output

[ 2.0, 5.0, 10.0 ]

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub