Also found in: Dictionary, Thesaurus, Medical, Legal, Financial, Acronyms, Idioms, Wikipedia.
Related to precedence: Precedence Effect
The order in which operators are processed in a programming language.
McGraw-Hill Dictionary of Scientific & Technical Terms, 6E, Copyright © 2003 by The McGraw-Hill Companies, Inc.
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)
precedenceThe order in which an expression is processed. Mathematical precedence is normally:
1. unary + and - signs
3. multiplication and division
4. addition and subtraction
In order to properly compute the formula that converts Fahrenheit to Celsius, which is fahrenheit-32*5/9, the expression
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:
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")
Copyright © 1981-2019 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.