Is it right that compiler also follow the BODMAS rule? | Sololearn: Learn to code for FREE!

+2

Is it right that compiler also follow the BODMAS rule?

5/18/2020 11:53:59 AM

Saurabh

12 Answers

New Answer

+3

From a design perspective, it's better to follow the said BODMAS rule because people are more used to it. Another reason is that it's the foundation of mathematics.

+2

饾悐饾悽饾悽饾悰饾惃 饾悊饾悺饾悮饾惒饾悮饾惀 OP asked if it is alright for a compiler to follow the BODMAS rule.

+2

銈点偆銉屻偣 will you clarify who is OP 馃槀馃槀 & and I know what questioner has asked but I am unable to understand what you said

+2

饾悐饾悽饾悽饾悰饾惃 饾悊饾悺饾悮饾惒饾悮饾惀 OP = Original Poster or something along those lines. What I was saying is that the reason most programming languages follow the said BODMAS rule is because people are more used to it, the precedence and associativity of the operations. Another reason is that BODMAS is one of the foundation of mathematics.

+2

Hahha seems like everyone got their points. OP and LP (LOCAL POSTER) 馃槀

+2

Saurabh Kumar Gupta yeah ryt 馃槀

+1

Ok and what does elif means?

+1

Saurabh Kumar Gupta Have a look on this 馃憞馃憞馃憞 https://www.sololearn.com/learn/Python/2278/

+1

Yes because everywhere is BODMAS rules are applying whatever that is Maths or programming we can use BODMAS

+1

銈点偆銉屻偣 馃憤馃憤馃憤

0

Saurabh Kumar Gupta Yeah You can check it by own Write a expression & run it You will get correct answer For further information please have a look on this code 馃憞馃憞馃憞 https://code.sololearn.com/cvQNE24jZ2Iq/?ref=app

0

銈点偆銉屻偣 not understood what you want to say