Decrement
✖
Decrement
decreases the value of x by 1, returning the old value of x.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (4)Survey of the scope of standard use cases

https://wolfram.com/xid/0ldgq72-3mn70w


https://wolfram.com/xid/0ldgq72-2dqqdg

Decrement all values in a list:

https://wolfram.com/xid/0ldgq72-boaay


https://wolfram.com/xid/0ldgq72-2v76mu

The argument to Decrement need not be a symbol:

https://wolfram.com/xid/0ldgq72-5axyxt


https://wolfram.com/xid/0ldgq72-s6reew


https://wolfram.com/xid/0ldgq72-tck70d

Applications (1)Sample problems that can be solved with this function
Properties & Relations (4)Properties of the function, and connections to other functions
Decrement and PreDecrement differ in the return value of the operation:

https://wolfram.com/xid/0ldgq72-jd4rit

https://wolfram.com/xid/0ldgq72-i3im0b


https://wolfram.com/xid/0ldgq72-dikf4d

Decrement is a short form of this assignment:

https://wolfram.com/xid/0ldgq72-5h1xz5

Decrement is a special case of SubtractFrom:

https://wolfram.com/xid/0ldgq72-lk1x9y

Increment and PreIncrement are closely related operations:

https://wolfram.com/xid/0ldgq72-krw5xl

https://wolfram.com/xid/0ldgq72-hx12qy


https://wolfram.com/xid/0ldgq72-bvd0m5

Wolfram Research (1988), Decrement, Wolfram Language function, https://reference.wolfram.com/language/ref/Decrement.html.
Text
Wolfram Research (1988), Decrement, Wolfram Language function, https://reference.wolfram.com/language/ref/Decrement.html.
Wolfram Research (1988), Decrement, Wolfram Language function, https://reference.wolfram.com/language/ref/Decrement.html.
CMS
Wolfram Language. 1988. "Decrement." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Decrement.html.
Wolfram Language. 1988. "Decrement." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Decrement.html.
APA
Wolfram Language. (1988). Decrement. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Decrement.html
Wolfram Language. (1988). Decrement. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Decrement.html
BibTeX
@misc{reference.wolfram_2025_decrement, author="Wolfram Research", title="{Decrement}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Decrement.html}", note=[Accessed: 21-February-2025
]}
BibLaTeX
@online{reference.wolfram_2025_decrement, organization={Wolfram Research}, title={Decrement}, year={1988}, url={https://reference.wolfram.com/language/ref/Decrement.html}, note=[Accessed: 21-February-2025
]}