Date: Thu, 5 Sep 1996 11:16:34 +0200 (IST) From: Eli Zaretskii To: "x DOT pons AT cc DOT uab DOT es" Cc: djgpp AT delorie DOT com Subject: Re: printf format string question In-Reply-To: <01I937T52TW200D67E@cc.uab.es> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 4 Sep 1996, x DOT pons AT cc DOT uab DOT es wrote: > How can specify a width fixed to 3 for the exponent of double variables > in printf format strings? That is to say, I want an output like > 3.2345E+034 > 3.2345E+134 I don't think this is possible, at least not in ANSI C. The ANSI standard says the exponent will always have at least 2 digits, but promises nothing else, and no flags are provided to have any control whatsoever on the exponent field.