Date: Mon, 13 Jul 1998 10:57:28 +0300 (IDT) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.