[英]Does C standard's FE_TONEAREST rounding mode guarantee that halfway ties are rounded to even?
我正在編寫的代碼取決於 C(特別是 c11)四舍五入到偶數的中途關系。 當使用 rint 和舍入模式作為 FE_TONEAREST 時,我沒有在 C 標准中找到保證如何使用 FE_NEAREST 處理關系。 ISO C 標准的第 509 頁指出 <fenv.h> 中的 fegetro ...