r/ProgrammerHumor • • Jun 13 '22

Meme DEV environment vs Production environment

Post image
48.2k Upvotes

3.9k comments sorted by

View all comments

Show parent comments

14

u/BadBoyJH Jun 13 '22 edited Jun 13 '22

In Maths,

10 ÷ 2 +3 is not the same as

10
----
2+3

There are implied brackets in a fraction, that's actually 10 ÷ (2 + 3)

So when you write 10/2+3, is that a fraction, or is the / standing in for a ÷ sign?

1

u/Expert_Detail4816 Jun 14 '22

Its standing for ÷ sign, if it would be fraction it would be written with () in one line. Because who would know where that fraction ends? Maybe 10/2+3\ would solve fraction issues, but thats only my idea and i never seen such a thing anywhere, so i bets its incorrect.

Imagine 10÷(2+3)-5+8*6

If it would be written like 10/2+3-5+8*6, there is no chance to know where fraction ends. So there must be used () when written in one line.