sqrt

Returns the square root of the number represented in number.

An error occurs if number is a negative number.

Syntax

   sqrt(number)
Table 1. sqrt parameters
Parameter Type Description
number Decimal number Any non-negative number

Returns

A string containing the square root, or an empty string if an error occurs.

Example

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>