Returns the value of the first element raised to the power of the second argument.
1 math.pow
<math.pow>
<arg1 /> *
<arg2 /> *
</math.pow>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Earg1 | numeric | ||||
Earg2 | numeric |
Returns | |
---|---|
Type | Description |
double | Result of the operation. |
Exceptions
requires 2 arguments
The function requires two arguments.
numeric type required
The function requires numerical arguments.
bad numeric data
Incorrect type of numeric.
Example
Copy
<xsql-script name='pow_sample1'> <body> <set name='arg1' type='integer'>4</set> <set name='arg2' type='integer'>2</set> <println><math.pow><arg1/><arg2/></math.pow></println> -->pow(arg1,arg2) = pow(4,2) = 4^2 = 16 </body> </xsql-script>
4 raised to 2 returns us 16.