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

Documentation / Mathematica / Built-in Functions / Programming / Assignments /

SubtractFrom

FilledSmallSquare x -= dx subtracts dx from x and returns the new value of x.

FilledSmallSquare SubtractFrom has the attribute HoldFirst.

FilledSmallSquare x -= dx is equivalent to x = x - dx.

FilledSmallSquare See Section 2.5.4.

FilledSmallSquare See also: Decrement, PreDecrement, Set.

FilledSmallSquare New in Version 1.

Further Examples