develooper Front page | perl.perl5.porters | Postings from July 2000

what was the outcome of the printf - exponent length question?

From:
mjd-p5p
Date:
July 31, 2000 11:42
Subject:
what was the outcome of the printf - exponent length question?
Message ID:
20000731184812.3877.qmail@plover.com

This fellow asked a question about a related issue in clp.misc, and I
don't know what answer to give him:

Path: newshog.newsread.com!bad-news.newsread.com!netaxs.com!newsread.com!news.misty.com!news.pir.net!panix!newsxfer.eecs.umich.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.msfc.nasa.gov!skates!not-for-mail
From: Jonathan Kuhn <jonathan.kuhn@gsfc.nasa.gov>
Newsgroups: comp.lang.perl.misc
Subject: printf %e exponent digits
Date: Mon, 31 Jul 2000 11:47:08 -0400
Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov)
Lines: 22
Message-ID: <39859F7C.96A1F360@gsfc.nasa.gov>
NNTP-Posting-Host: bigbird.gsfc.nasa.gov
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: skates.gsfc.nasa.gov 965058970 20594 128.183.154.2 (31 Jul 2000 15:56:10 GMT)
X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov
NNTP-Posting-Date: 31 Jul 2000 15:56:10 GMT
X-Mailer: Mozilla 4.73 [en] (WinNT; U)
X-Accept-Language: en
Xref: bad-news.newsread.com comp.lang.perl.misc:333511

Hello,

How do you set the number of digits for the %e descriptor in printf? I
must have 2 digits, but activeperl under windows nt is giving 3. Perl on
an SGI with IRIX is giving 2.

Sorry if the answer to this is out there somewhere, but I have spent
over an hour searching and haven't found anything.

Jonathan

-- 
  Dr. Jonathan Kuhn
  Mechanical Systems Analysis and Simulation Branch
  NASA Goddard Space Flight Center Code 542
  Greenbelt, MD 20771

  Office: Bldg 5 Room C310A
  Phone:  (301) 286-4278
  FAX:    (301) 286-0204 
  Email:  jonathan.kuhn@gsfc.nasa.gov
  URL:    http://analyst.gsfc.nasa.gov/jkuhn

--dljmfabffjkphfmdkjff--






nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About