NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/59749: awk bad test to see if printf supports the %a format
The following reply was made to PR bin/59749; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: bin/59749: awk bad test to see if printf supports the %a format
Date: Thu, 6 Nov 2025 17:41:43 +0100
I think I read ISO C to say that windows is wrong here.
When no precision is specified ISO distinguishes
between FLT_RADIX is a power of 2: the precision is sufficient for
an exact representation of the value; if FLT_RADIX is not a power of 2
the precision is enough to distinguish all possible nearby values the
double type can represent, but trailing zeros may be ommited.
And of course FLT_RADIX is 2 on all relevant architectures.
Martin
Home |
Main Index |
Thread Index |
Old Index