PreDecrement

--x

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

Details

Examples

open allclose all

Basic Examples  (1)

Decrement the value by one and return the new 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

Decrement  SubtractFrom  PreIncrement  Set

Tutorials

Introduced in 1988
(1.0)