answersLogoWhite

0


Best Answer

Think of BOMDAS

Brackets

Of

Multiplication

Division

Addition

Subtraction

It is the order in which parts of a calculation are done when you have a mix of operators. "Of" relates to power of. Computers follow the laws of mathematics. Calculations are not always done left to right. For example:

10+2*5

The answer here is 20, and not 60 which many people would think. The 2*5 is done first because multiplication is done before addition. So the 2 is multiplied by 5, giving 10, and that 10 is added to the first 10, giving 20. As anything inside brackets is done first, changing the formula as follows will give 60:

(10+2)*5

Here the 10 and 2 are added, because the calculation is inside the brackets. That gives 12, which when multiplied by 5 gives 60.

Here is another one, showing that power of is done before multiplication. It will square 10, giving 100 and then multiply it by 3, giving 300.

3*10²

Multiplications and Divisions actually have equal precedence. So they are always done left to right. So in this one the multiplication is done first and then the division:

3*2/4

In this one the division is done first and then the multiplication:

3/2*4

Because of this, BOMDAS can also be written as BODMAS.

Additions and subtractions also have equal precedence with each other and so are done left to right, but only after multiplications and divisions have been completed. Only brackets can change that, as in the second example.

There is also order of operations for logical or boolean operations, which is in the order Brackets, Not, And, Or.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does the order of precedence mean in the computer language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What does II mean computer language?

2


In computer language what does ms mean?

Microsoft


Where do you get python?

If you mean the computer language...www.python.org/


In computer language what does the word progra mean?

In the computer language the word "progra" is short for program. The word "progra" is shorthand or slang for the word program in the computer language.


What is terminology for circle in computer mouse?

Considering the wording of your question I would assume you mean computer mouse as a language and asking what circle is in the language computer mouse. Given that there is no such language I have no clue.


What is HELO mean in computer language?

lol jhgfdsawsdefrgth


What does 'FML' mean in computer terminology?

Field Manipulation Language


What does megahertz mean in computer language?

it means u like boys


What does this in computer language please see the answer because I cant type it?

I mean this @}--}-----


What does NFTS mean in computer language?

New Technology File System


What does virus mean in computer language?

A computer program that is designed to replicate itself by copying itself into the other programs stored in a computer.


What does sexly mean in computer language?

The term "sexly" has no meaning in the field of computers.