Hacker News new | ask | show | jobs
by Gobiner 5939 days 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-optimizat...
1 comments

If you want identical results regardless of optimization level or machine characteristics, you should really be using fixed-point instead.