Do multiple before divide, and use an lround() to get the same results on Win32 with mingw32 as Clang on FreeBSD.