>Floating point equivalence is not guaranteed so is this comparison valid ?
C99 in 5.2.4.2.2#5 says: The accuracy ofthe floating-point operations (+, -, *, /) and of the library functions in <math.h>and <complex.h> that return floating-point results is implementation-defined [...] The implementation may state that the accuracy is unknown. JW PS. Are you sure you linked against avr-libc's math library? _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev