Decreases a variable by the specified unit and also returns its new content.
Syntax |
real dec (real var [, real value=1]) |
---|---|
var |
Variable to be decremented |
value |
Decrement value. (optional, default 1) |
result |
Returns the new content of var (result of subtraction) |
Validity |
Rule, Task |
Note |
The result can also be omitted |
Example of use:
|