tcpdump mailing list archives
Re: POSIX and float rounding
From: Guy Harris <gharris () sonic net>
Date: Thu, 19 Mar 2026 09:29:57 -0700
On Mar 19, 2026, at 9:16 AM, Guy Harris <gharris () sonic net> wrote:
On Mar 19, 2026, at 6:40 AM, Denis Ovsienko <denis () ovsienko info> wrote:Does POSIX define which method printf(3) is supposed to use for rounding a float?The first question to ask is "does *the C standard* define which method printf() is supposed to use for rounding a float?"
As for POSIX, it says "The functionality described on this reference page is aligned with the ISO C standard. Any conflict between the requirements described here and the ISO C standard is unintentional. This volume of IEEE Std 1003.1-2001 defers to the ISO C standard." in a number of places, including <fenv.h>, fegetround(), fesetround(), and fprintf(). _______________________________________________ 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)
