Pelles C forum

Pelles C => Bug reports => Topic started by: _Felix on February 10, 2008, 06:09:50 AM

Title: 1 - 4 + 4 is 1, apparently
Post by: _Felix on February 10, 2008, 06:09:50 AM
but aren't those operators supposed to associate right to left?
Title: Re: 1 - 4 + 4 is 1, apparently
Post by: Robert on February 10, 2008, 08:13:23 AM
Unary plus/minus associativity is right-to-left.

Addition/subtraction is left-to-right.

Robert Wishlaw
Title: Re: 1 - 4 + 4 is 1, apparently
Post by: _Felix 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.
Title: Re: 1 - 4 + 4 is 1, apparently
Post by: Pelle on February 15, 2008, 11:02:24 AM
...a bug in v4.50, but corrected for v5.00.