$calc » History » Version 5
Per Amundsen, 08/09/2015 06:08 AM
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 | 4 | Per Amundsen | [[Arithmetic Operators]]. |
8 | 2 | Per Amundsen | |
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 | 5 | Per Amundsen | ; Returns 6. |
19 | 1 | Per Amundsen | //echo -ag $calc((4 + 4) - 2) |
20 | </pre> |