# precedence

(redirected from precedency)
Also found in: Dictionary, Thesaurus, Legal, Financial.
Related to precedency: presidency

## precedence

[′pres·əd·əns]
(computer science)
The order in which operators are processed in a programming language.

## precedence

operator precedence

## precedence

The order in which an expression is processed. Mathematical precedence is normally:

1. unary + and - signs
2. exponentiation
3. multiplication and division

In order to properly compute the formula that converts Fahrenheit to Celsius, which is fahrenheit-32*5/9, the expression

(fahrenheit-32)*5/9

must be used with parentheses separating the fahrenheit-32 from the multiplication. Since multiplication is evaluated before subtraction, 32 would be multiplied by 5 first, which is not what is wanted.

Logical precedence is normally:

1. NOT
2. AND
3. OR

In the dBASE query:
`list for item = "TIE" .and. color = "GRAY" .or. color = "RED"`

all gray ties and anything red will be selected, since ANDs are evaluated before ORs. Grouping the colors in parentheses as in the example below yields only gray and red ties.
`(color="GRAY" .or. color="RED")`
References in periodicals archive ?
which establishes Whitaker's Table of Precedency, which has become
2, 470; No discovery cou'd have been made more happily for deciding all controversies concerning ideas, than that above-mention'd, that impressions always take the precedency of them, and that every idea, with which the imagination is furnish'd, first makes its appearance in a correspondent impression.
They that are in dignity or in office have, in all places, precedency.

Site: Follow: Share:
Open / Close