about the precedence of operator "^" and "-" ?

From: Xin Xie <xiexinyls_at_nyahnyahspammersnyahnyah>
Date: Fri Mar 25 2011 - 06:59:10 MDT

Hi,

I found the exponent operator precedence lower than minus, which is not common.
For example
print(-1^2)
yields
1
I am not sure if this is a bug. If so, you may fix it. Thanks very much!

Xin Xie (Jason)
PhD Student
School of Marine and Atmospheric Sciences
Stony Brook University
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Mar 25 06:59:16 2011

This archive was generated by hypermail 2.1.8 : Mon Mar 28 2011 - 08:51:50 MDT