8 ms·
If you think a feature that could potentially behave differently in RELEASE and DEBUG modes is problematic, you'll want to avoid floats and doubles in .NET. Run
by Gobiner 17y ago
If you think a feature that could potentially behave differently in RELEASE and DEBUG modes is problematic, you'll want to avoid floats and doubles in .NET. Runtime optimizations that do calculations in the processor's 80-bit FPU can alter the results of float/double calculations. My personal example: http://stackoverflow.com/questions/2225503/clr-jit-optimizations-violates-causality http://stackoverflow.com/questions/2225503/clr-jit-optimizat...
- pcarmichael 17y agoIf you want identical results regardless of optimization level or machine characteristics, you should really be using fixed-point instead.