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

                 Summary: Formula AI gives / precedence over *
                 Project: Battle for Wesnoth
            Submitted by: exasperation
            Submitted on: Thu 26 May 2011 12:25:52 AM GMT
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Artificial Intelligence
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.8.5 
        Operating System: all

    _______________________________________________________

Details:

Formula AI (and by extension, WML formulas) gives / a higher precedence than
*.  When performing integer calculations, this can change the result.  For
example, the formula "5*7/8" will return 0, while the formula "(5*7)/8" will
return 4 (on the other hand, "5/8*7" and "(5/8)*7" both return 0).

First discovered on Windows 7 64 bit, but does not appear to depend on OS
(independently confirmed by Anonymissimus).




    _______________________________________________________

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