Decrement• x-- decreases the value of x by 1, returning the old value of x. • See also: Increment.
Examples Using InstantCalculatorsInitialize a to the value 3. Decrement a using the InstantCalculator and click Calculate to see the result.
Out[2]= |  |
Check the value of a.
Out[3]= |  |
Entering Commands DirectlyYou can paste a template for this command via the Text Input button on the Decrement Function Controller. Decrement a again using the shorthand form.
Out[4]= |  |
Check the value of a.
Out[5]= |  |
Clear the variable definition. Decrement is useful in loops.
|