Returns the square root of the number represented in number.
An error occurs if number is a negative number.
sqrt(number)
Parameter | Type | Description |
---|---|---|
number | Decimal number | Any non-negative number |
A string containing the square root, or an empty string if an error occurs.
In this example, the result of sqrt is "4.415880".
<field sid="sqrtTestField">
<label>Test sqrt()</label>
<format>
<datatype>string</datatype>
<constraints>
<mandatory>on</mandatory>
</constraints>
</format>
<value compute="sqrt('19.5')"></value>
</field>