NO

Author Topic: 1 - 4 + 4 is 1, apparently  (Read 3421 times)

_Felix

  • Guest
1 - 4 + 4 is 1, apparently
« on: February 10, 2008, 06:09:50 AM »
but aren't those operators supposed to associate right to left?

Offline Robert

  • Member
  • *
  • Posts: 247
Re: 1 - 4 + 4 is 1, apparently
« Reply #1 on: February 10, 2008, 08:13:23 AM »
Unary plus/minus associativity is right-to-left.

Addition/subtraction is left-to-right.

Robert Wishlaw

_Felix

  • Guest
Re: 1 - 4 + 4 is 1, apparently
« Reply #2 on: February 11, 2008, 12:29:57 AM »
Ah! Thanks.

To ease my embarrassment, here's a genuine error, but it's only in the help files, under the entry for atan2:

Purpose:
Calculates arctangent of y / x.
 
Returns:
Arctangent of x / y.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: 1 - 4 + 4 is 1, apparently
« Reply #3 on: February 15, 2008, 11:02:24 AM »
...a bug in v4.50, but corrected for v5.00.
/Pelle