Multiply n factors.
1 eval.mul
<eval.mul>
<factor1 /> !
<factor2 /> !
</eval.mul>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Efactor1 | |||||
Efactor2 |
Returns | |
---|---|
Type | Description |
integer | double | bigdecimal | Returns the result of the operation. The type of data depends on the input values. |
Exceptions
at least 2 arguments required
illegal operator
illegal object types
Example
Copy
<xsql-script name='mul_sample1'> <body> <set name='a' type='integer' value='7' /> --> a = 7 <println><eval.mul><a/>3</eval.mul></println> --> a * 3 = 7 * 3 = 21 </body> </xsql-script>
Returns:
Copy
21