Stefan van der Walt wrote: > I find this behaviour odd for addition. Under python: > > In [7]: 0.8+0.2 > 1.0 > Out[7]: False > > but using the Pyrex module, it yields true.
odd. I wonder if one is using extended floating point in the FPU, and the other not? What hardware/OS/compiler are you using? I'm no numerical analyst, I just know enough not to expect floating point calculations to be accurate to the last couple digits. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] _______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
