$calc » History » Version 2
Per Amundsen, 02/28/2014 12:51 PM
| 1 | 1 | Per Amundsen | _Added in 1.8.10_ |
|---|---|---|---|
| 2 | |||
| 3 | *$calc(operations)* |
||
| 4 | |||
| 5 | Returns the result of the specified operations. You can perform multiple operations. |
||
| 6 | |||
| 7 | 2 | Per Amundsen | [arithmetic operators [arithmetic operators]]. |
| 8 | |||
| 9 | Operations can be grouped with parentheses. |
||
| 10 | 1 | Per Amundsen | |
| 11 | *Parameters* |
||
| 12 | |||
| 13 | operations - The calculations to perform. |
||
| 14 | |||
| 15 | *Example* |
||
| 16 | |||
| 17 | <pre> |
||
| 18 | ;Returns 6. |
||
| 19 | //echo -ag $calc((4 + 4) - 2) |
||
| 20 | </pre> |