www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/04/11:45:10

Date: Wed, 04 Sep 1996 17:31:51 +0000
From: "x DOT pons AT cc DOT uab DOT es" <ILGES AT cc DOT uab DOT es>
Subject: printf format string question
To: djgpp AT delorie DOT com
Message-id: <01I937T52TW200D67E@cc.uab.es>
Organization: Universitat Autonoma de Barcelona
MIME-version: 1.0

Dear programmers,

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

Thanks,

XP

- Raw text -


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