4 ms·
Unlike C++, Java ensures that floating point calculations always yield the exact same result, regardless of the underlying platform. This can degrate performanc
by Hermel 11y ago
Unlike C++, Java ensures that floating point calculations always yield the exact same result, regardless of the underlying platform. This can degrate performance.
I am not sure if they meant that thought, in my opinion this is an advantage of Java.
- oelang 11y agoFloating point calculations are only guaranteed to be platform independent when you use the 'strictfp' modifier.