tcpdump mailing list archives
Re: POSIX and float rounding
From: Guy Harris <gharris () sonic net>
Date: Thu, 19 Mar 2026 09:45:44 -0700
On Mar 19, 2026, at 9:30 AM, Denis Ovsienko <denis () ovsienko info> wrote:
On Thu, 19 Mar 2026 09:16:47 -0700 Guy Harris <gharris () sonic net> wrote:Try that on the platforms in question and see what it reports.$ ./roundingmode Rounding mode: to nearest fenv.h defines exactly the four FE_ rounding modes.
So that's true on *all* of the platforms, including QNX? That's annoying. It appears that QNX's definition of "to nearest", in the "the two choices are equidistant" case, is different from that of all other platforms (and from what I guess I was taught in school, as I've always thought you were supposed to round 0.5 up to 1). Perhaps it's time to see what IEEE 754 has to say on the topic. _______________________________________________ tcpdump-workers mailing list -- tcpdump-workers () lists tcpdump org To unsubscribe send an email to tcpdump-workers-leave () lists tcpdump org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
Current thread:
- POSIX and float rounding Denis Ovsienko (Mar 19)
- Re: POSIX and float rounding Guy Harris (Mar 19)
- Re: POSIX and float rounding Guy Harris (Mar 19)
- Re: POSIX and float rounding Denis Ovsienko (Mar 19)
- Re: POSIX and float rounding Guy Harris (Mar 19)
- Re: POSIX and float rounding Guy Harris (Mar 19)
- Re: POSIX and float rounding Guy Harris (Mar 19)
- Re: POSIX and float rounding Guy Harris (Mar 19)
- Re: POSIX and float rounding Guy Harris (Mar 19)
- Re: POSIX and float rounding Rick Jones via tcpdump-workers (Mar 19)
- Re: POSIX and float rounding Denis Ovsienko (Mar 19)
- Re: POSIX and float rounding Guy Harris (Mar 19)
- Re: POSIX and float rounding Guy Harris (Mar 19)
