# Another floating point casualty: round/integer arithmetic functions

**URL:** <https://swi-prolog.discourse.group/t/another-floating-point-casualty-round-integer-arithmetic-functions/5159>\
**Category:** Predicate\
**Tags:** bug\
**Created:** [March 23, 2022, 9:14pm UTC](https://swi-prolog.discourse.group/t/another-floating-point-casualty-round-integer-arithmetic-functions/5159 "2022-03-23T21:14:30Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [March 24, 2022, 1:59pm UTC](https://swi-prolog.discourse.group/t/another-floating-point-casualty-round-integer-arithmetic-functions/5159/9 "2022-03-24T13:59:32Z")

</div>

> [@jan](#):
>
> Added some more tests.

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](https://sourceforge.net/p/mingw/patches/370/) This was reported in 2008 … Anyway, a number of the IEEE-754 tests fail as well ☹

---

_[View the full topic](https://swi-prolog.discourse.group/t/another-floating-point-casualty-round-integer-arithmetic-functions/5159)._
