ID:272170
Apr 19 2008, 9:19 pm
|
|
Simple question: Does DM support BODMAS?
|
Apr 19 2008, 9:27 pm
|
|
http://www.byond.com/docs/ref/info.html#/operator
|
In response to YMIHere
|
|
All I was really looking for was a yes or no answer, not the list of operators. But, errr, thanks?
|
In response to Demon_F0rce
|
|
It shows the order of operations. =)
As far as I can tell it's a yes, but considering BODMAS is completely new to me at this time I figured it'd be better for you to see for yourself. =) A note, the slash in the first line is the path operator, not division. |
You should make yourself more clear rather than using uncommon abbreviations with no explanation;
If you're referring to grouping an expression in parenthesis to change the order of operations or make it execute first, then yes, DM supports it, and certain expressions require it. A common example is when trying to check if an element isn't in a list by the 'in' operator, which has low precedence. proc/check(List,item) Also of course, your common math example... mob/verb/do_math() |
In response to Kaioken
|
|
Yeah... I meant BODMAS as in Brackets of Division Multiplication Addition Subtraction. I didn't know there was another kind...
|
In response to Demon_F0rce
|
|
The O actually stands for "exponentiation."
Somehow. |
In response to Demon_F0rce
|
|
I think it's usually called the order of operations.
http://en.wikipedia.org/wiki/BOMDAS |
In response to Demon_F0rce
|
|
To think, I thought it was only BEDMAS that was correct term lol.
|