It appears MinGW (9.2.1) has a broken llround(), so using llround() is still not perfect See MinGW - Minimalist GNU for Windows / Patches / #370 lround and llround functions are incorrect This was reported in 2008 … Anyway, a number of the IEEE-754 tests fail as well