delorie.com/archives/browse.cgi | search |
Date: | Mon, 13 Jul 1998 10:57:28 +0300 (IDT) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
To: | Kbwms AT aol DOT com |
cc: | djgpp-workers AT delorie DOT com |
Subject: | Re: printf "%g" format conversions |
In-Reply-To: | <3996cdad.35a91518@aol.com> |
Message-ID: | <Pine.SUN.3.91.980713105652.323B-100000@is> |
MIME-Version: | 1.0 |
On Sun, 12 Jul 1998 Kbwms AT aol DOT com wrote: > According to the standard, printf ("%.3g", 0.01234) should give rise to > "0.012" as is produced by v2.01. Microsoft C violates the standard as > does Borland - both print "0.0123". My guess is that this relates to > the significant digits controversy. Yes. It could be argued that 0.012 is only 2 significant digits, whereas %.3g requests for 3.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |