Follow-up Comment #3, bug #18166 (project wesnoth):

To the best of my knowledge, there isn't any documentation for this; that's
part of the problem.  If there's no documentation, people are likely to assume
that things work here like they do elsewhere.  Looking elsewhere, in C/C++/C#,
Java, Perl, Excel, Lua, Python, Haskell, Erlang, Scala, Fortran, PHP, Ruby,
Pascal (I could probably keep going for a while longer if I really wanted to),
as well as the basic algebra we're taught in school all have * and / having
the same precedence, and associativity going from left to right.  So we expect
a*b/c to be the same as (a*b)/c and a/b*c to be the same as (a/b)*c.  When
we're working with floating point the difference is hard to see, but with
integer calculations (like formulas assume by default here) the difference can
be enormous.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?18166>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to