Hear from Salesforce leaders on how to create and deploy Agentforce agents.
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) ]
DataWeave

Output

[ 2, 5, 10 ]
JSON