Contact Us 1-800-596-4880

sqrt

sqrt(number: 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 ]