SubtractFrom

x-=dx

subtracts dx from x and returns the new value of x.

Details

Examples

open allclose all

Basic Examples  (1)

Scope  (3)

Subtract from a numerical value:

Subtract from a symbolic value:

Subtract from all values in a list:

Applications  (1)

Find the last prime below one million:

Properties & Relations  (3)

SubtractFrom is a short form of this assignment:

PreDecrement is a special case of SubtractFrom:

AddTo is closely related:

Possible Issues  (1)

A variable to be decremented must have an initial value:

Introduced in 1988
 (1.0)