This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


subtracts dx from x and returns the new value of x.
  • is equivalent to .
Click for copyable input
Click for copyable input
Subtract from a numerical value:
Subtract from a symbolic value:
Subtract from all values in a list:
Find the last prime below one million:
SubtractFrom is a short form of this assignment:
PreDecrement is a special case of SubtractFrom:
AddTo is closely related:
A variable to be decremented must have an initial value:
New in 1