Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!dali.cs.montana.edu!milton!seymour From: seymour@milton.acs.washington.edu (Richard Seymour) Newsgroups: comp.lang.fortran Subject: Re: problem with "pe" format Message-ID: <4008@milton.acs.washington.edu> Date: 7 Jun 90 22:35:09 GMT References: <90155.122858GL4@psuvm.psu.edu> <90158.091706GL4@psuvm.psu.edu> Reply-To: seymour@milton.u.washington.edu (Richard Seymour) Organization: University of Washington, Seattle Lines: 12 there's also the case of using Exponent notation (E-format). in standard fortran (ansi x3.9-1978 page 13-11) the ONLY way to get other than a single zero to appear to the left of the decimal point is via the P scale factor. E12.3 gives 0.270e+02 as output 1PE12.3 gives 2.701e+01 as output 2PE12.3 gives 27.012e+00 as output (i believe) there is NO other way (without building strings of integers) to get other than a single zero before that decimal point. (the same argument applies if you want leading zeroes to the RIGHT of the decimal point: -1PE12.3 gives 0.027e+04 ) --dick