Trying to port java code to C++ I\'ve stumbled over some weird behaviour. I can\'t get double addition to work (even though compiler option /fp:strict which means \"correct\
The only thing I can think of is perhaps you are linking against a library or DLL which has modified the CPU precision via the control word.
Have you tried calling _fpreset() from float.h before the problematic computation?
_fpreset()
float.h