Date: Mon, 7 May 2007 22:59:48 -0400 From: David Schultz <das@FreeBSD.ORG> To: Bruno Haible <bruno@clisp.org> Cc: freebsd-standards@FreeBSD.ORG Subject: Re: a bug in printf %a Message-ID: <20070508025948.GA7859@VARK.MIT.EDU> In-Reply-To: <200704060335.22770.bruno@clisp.org>
index | next in thread | previous in thread | raw e-mail
On Fri, Apr 06, 2007, Bruno Haible wrote: > sprintf (buf, "%.2a", 1.51) > should produce "0x1.83p+0". On FreeBSD it produces "0x1.82p+0", which is > incorrect since [1] says: > "For the a and A conversion specifiers, if FLT_RADIX is a power of 2, the > value shall be correctly rounded to a hexadecimal floating number with > the given precision." Fixed in HEADhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070508025948.GA7859>
