Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!usenet.ins.cwru.edu!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!bbn.com!fwebb From: fwebb@bbn.com (Fred Webb) Newsgroups: comp.lang.fortran Subject: Re: Formatting question Message-ID: <59116@bbn.BBN.COM> Date: 24 Aug 90 12:33:14 GMT References: <1121@orange.qtp.ufl.edu> Sender: news@bbn.com Reply-To: fwebb@BBN.COM (Fred Webb) Organization: Bolt Beranek and Newman Inc., Cambridge MA Lines: 15 In article <1121@orange.qtp.ufl.edu> bernhold@qtp.ufl.edu (David E. Bernholdt) writes: > >I want to print out a number in a very compact format like dE-dd >(d=digit), that is without the leading "0." in the mantissa. > Well, you probably can't get rid of the decimal point, but by using SS,1P,E6.0 you'll get something like "1.E-36". I assume none of your numbers will be negative, or else you need another character position for the - sign (1P,E7.0). (I just tried exactly this, with the Fortran compiler I maintain, and got the expected result.) -- Fred