Topic summary

=

=

Extracted from the Wikipedia article Equals sign.

Usage in mathematics and computer programming

The first important computer programming language to use the equals sign was the original version of Fortran, FORTRAN I, designed in 1954 and implemented in 1957. In Fortran, = serves as an assignment operator: X = 2 sets the value of X to 2. This somewhat resembles the use of = in a mathematical definition, but with different semantics: the expression following = is evaluated first, and may refer to a previous value of X. For example, the assignment X = X + 2 increases the value of X by 2.