Clarity | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Clarity

So if I use math operators on My code will My code automatically perform bodmas rule or I will have to come up with an algorithm that will perform the bodmas rule?

13th Jan 2018, 8:37 AM
Abram Mokgethi
Abram Mokgethi - avatar
2 Answers
0
The code will perform "bodmas" automatically (Assuming it is pemdas-like term)
13th Jan 2018, 9:14 AM
Complex
Complex - avatar
0
bodmas seems a somewhat arbitrary rule when you learn it in school but it's actually a fundamental part of how arithmetic works, in particular it is a basic assumption in computer calculation, so yeah :)
13th Jan 2018, 9:56 AM
Dan Walker
Dan Walker - avatar