>From the bc man page:

       The expression precedence is as follows: (lowest to highest)
              || operator, left associative
              && operator, left associative
              ! operator, nonassociative
              Relational operators, left associative
              Assignment operator, right associative
              + and - operators, left associative
              *, / and % operators, left associative
              ^ operator, right associative
              unary - operator, nonassociative
              ++ and -- operators, nonassociative

Note that "unary -" has _higher_ precedence than "^".  Thus "-2^2" is
equivalent to "(-2)^2".  "-2" represents the negative number "minus
two", not the expression "0-2".
-- 
John Hasler 
jhas...@newsguy.com
Elmwood, WI USA



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to