Jump to content
The mkiv Supra Owners Club

Basic maths? Think you know?


caseys

Recommended Posts

  • Replies 74
  • Created
  • Last Reply

Top Posters In This Topic

This all stems from an argument about it with a bunch of programmers. There are several ways to read this and also execute it!

Doesn't the generally-accepted operator precedence define a single correct way though? I suppose then it's an issue of whether one follows the generally-accepted way.

Link to comment
Share on other sites

Hmmm I voted 0 but now I think it's 15. The way it's written with a space at the end for the zero kind of implies that the whole thing is multiplied by 0 at the end (like (5+5+5-5+5+5-5)0 ) but if you write it all with the same spaces it's 5+5+5-5+5+5-5+5x0 which is the same as karolina's post (although there are added brackets they don't make a difference to the outcome here) given that you have to do multiplication before addition and subtraction (bodmas). Those are my thoughts :)

Link to comment
Share on other sites

I voted 15, but I was probably wrong!

 

I don't know what the answer actually is, because it would depend on the order you carry out the subtractions.

 

5+5+5-5+5+5-5+5x0

BODMAS says you should do the multiplication first

5+5+5-5+5+5-5+0

Then you should do the addition

15-15-5

but there is no convention to the order of subtractions.

so the answer could be either 0-5 = -5 or 15-10 = 5

 

Interesting - and I hate you for proving my inadequacies.

 

Mike

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. You might also be interested in our Guidelines, Privacy Policy and Terms of Use.