Calculate the square root of the argument.
1 math.sqrt
<math.sqrt>
<var /> +
</math.sqrt>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Evar | number |
Returns | |
---|---|
Type | Description |
double | Result of the operation. |
Exceptions
requires 1 arguments
The function requires an argument.
numeric type required
The argument passed to the function must be numeric.
bad numeric data
Incorrect type of numeric argument.
Example
Copy
<xsql-script name='sqrt_sample1'> <body> <println><math.sqrt>4</math.sqrt></println> --> sqrt 4 = 2 </body> </xsql-script>
Returns:
Copy
2
Example
Copy
<xsql-script name='sqrt_sample2'> <body> <set name='a' type='integer'>64</set> --> a = 64 <println><math.sqrt><a/></math.sqrt></println> --> sqrt 64 = 8 </body> </xsql-script>
Returns:
Copy
8