delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/01/16:31:20

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Gawk 3.0.3 print error?
Date: Tue, 01 Feb 2000 21:41:07 +0200
Organization: NetVision Israel
Lines: 9
Message-ID: <389736D3.7A081734@is.elta.co.il>
References: <01bf6c8d$65a899c0$09cc010a AT iws0334 DOT inadg DOT gruppoina DOT it>
NNTP-Posting-Host: ras1-p61.rvt.netvision.net.il
Mime-Version: 1.0
X-Trace: news.netvision.net.il 949434086 26044 62.0.172.63 (1 Feb 2000 19:41:26 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 1 Feb 2000 19:41:26 GMT
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en,ru,hebrew
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Giacomo Cau wrote:
> 
> >gawk "BEGIN{OFMT=\"%012.0f\";print OFMT,1,sprintf(OFMT,1)}"
> 
> %012.0f 1 000000000001

What seems to be the problem, exactly?  I don't see anything wrong with this
result; that's what I'd expect "%012.0f" to produce.  The leading zero says
to pad with zeros, and .0 says no fractional digits.

- Raw text -


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