delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/03/03:06:42

Date: Tue, 3 Mar 1998 10:05:49 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Erik Max Francis <max AT alcyone DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: printf 'g' conversion
In-Reply-To: <34FAE10A.49F88C55@alcyone.com>
Message-ID: <Pine.SUN.3.91.980303100526.3022A-100000@is>
MIME-Version: 1.0

On Mon, 2 Mar 1998, Erik Max Francis wrote:

> > It says (in a fragment you didn't quote) that when
> > the `e' style would result in a sufficiently small exponent, `f' style
> > should be used.  This is all okay, and DJGPP's libc does just that: it
> > prints a number like if you said "%11.9f".
> 
> Where does it say this?

In the same para 7.9.6.1, where it describes the `g' and `G'
specifiers.

>  In fact, it _shouldn't_ do this for the `e' (or
> `E'), because it means "I always want it in exponential notation no
> matter what."  Or did you mean `g'?

I meant, if `g' is used, then when `e' style would result... etc.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019