Alan Freedman -- The Computer Language Company - Computer Desktop Encyclopedia
Computer Desktop Encyclopedia
Longest-Running Tech Reference on the Planet

A CDE Definition

You'll love The Computer Desktop Encyclopedia (CDE) for Tech Term of the Day (TTOD)

LOOK UP ANOTHER TERM


logical precedence

See precedence.



precedence

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

1. unary + and - signs
2. exponentiation
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

(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") 





Personal Use Only

Before/After Your Search Term
BeforeAfter
logical designlogical record
logical devicelogical topology
logical driveLogical Unit
logical expressionlogical unit number
logical fieldlogical volume
logical fontlogical vs. physical
Logical Link Controllogical vs. physical topology
logical locklogin
logical operatorLogo
logical partitionlogo police

Terms By Topic
Click any of the following categories for a list of fundamental terms.
Computer Words You Gotta KnowSystem design
Job categoriesUnix/Linux
Interesting stuffPersonal computers
InternetIndustrial Automation/Process Control
Communications & networkingAssociations/Standards organizations
HistoryDesktop publishing
Audio/VideoGraphics
MainframesSecurity
ProgrammingHealthcare IT
System design