Decrement

x--

decreases the value of x by 1, returning the old value of x.

Details

Examples

open allclose all

Basic Examples  (1)

Decrement the value of k by one, but return the old value:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (3)

Applications  (1)

Properties & Relations  (4)

Possible Issues  (1)

See Also

PreDecrement  SubtractFrom  Set  Subtract

Tutorials

Introduced in 1988
(1.0)