3 ms·
https://web.archive.org/web/20191112011511/https://www.johndcook.com/blog/2019/11/11/floating-point-oddity/ https://web.archive.org/web/20191112011511/https://w
by jandrese 7y ago
https://web.archive.org/web/20191112011511/https://www.johndcook.com/blog/2019/11/11/floating-point-oddity/ https://web.archive.org/web/20191112011511/https://www.johnd...
- colanderman 7y agoThe original post was missing return types for the C++ functions, thus defaulting to int. Adding correct return types (T) resulted in the same output as the C version (0), thus eliminating the discrepancy and making the title nonsensical, hence the edit. -Wall -Wextra -Werror is your friend.