View Single Post
 
Reply
Posted 2003-09-11, 09:49 AM in reply to slaynish's post "Can somone help me please?"
Jamesadin said:
Easy, if the question is- Its (5-0.5)x0.22=?

You do the parenthesis first- which equals 4.5 and then multiply it by 0.22. Therefore the answer would be 0.99. So, the people who posted above me are right.

So, remember, when doing order of operations: BEDMAS.

B-Brackets
E-Exponents
D-Division
M-Multiplication
A-Adding
S-Subtraction

But, division and multiplication could be switched around, which ever comes first on the page. Same with adding and subtracting.
All the schools I've been in used

P-Perenthesis
E-Exponents
M-Multiplication
D-Division
A-Addition
S-Subtraction
Please Excuse My Dear Aunt Sally

...right...
Anyway, it's not that simple for me anymore, 'cause I'm a C programmer. Here is my order of operations list.
Brackets, parenthesis, members, member indirection, postincrement, postdecrement
preincrement, predecrement, sizeof, address of, pointer indirection, positive, negative, bitwise NOT, logical NOT
typecasting
Multiplication,division,division remainder
addition,subtraction
bitwise shift left, bitwise shift right
less than,greater than, less than or equal to, greater than or equal to
equal, not equal
bitwise AND
bitwise XOR
bitwise OR
logical AND
logical OR
inline conditional
assignment
sequential evaluation


Needless to say, for the most part I just use a lot of parentheiss...
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired