On Wednesday 01 August 2007 13:50:45 Joshua Hoblitt wrote: > I'm not sure if 0.0 == -0.0 is true on all platforms. It should be for > IEEE754 compliance but in the real world... > > It might be nice to throw in a few tests to see if the example code > below would have the same results on all platforms. > > -- > #include <stdio.h> > #include <math.h> > > int main () > { > printf("0.0 : %f\n", 0.0); > printf("-0.0 : %f\n", -0.0); > printf("0.0 == -0.0 : %d\n", 0.0 == -0.0); > } > --
That might fix some of the transcendental and complex math failures on various *BSDs. Steve Peters was looking into that a couple of months ago. --c