Newsgroups: fj.lang.perl
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!etlnews.etl.go.jp!news.trc!nf8.iij.ad.jp!nr0.iij.ad.jp!news.iij.ad.jp!othp1.sci.jri.co.jp!othp1!mishima
From: mishima@osa.sci.jri.co.jp (Masahiro Mishima)
Subject: Re: Perl-5.001-Win32 strange numeric calculation results
In-Reply-To: yam@mb.infoweb.or.jp's message of 29 May 1997 00:13:52 GMT
Content-Type: text/plain; charset=ISO-2022-JP
Message-ID: <MISHIMA.97May29102018@oppc1.osa.sci.jri.co.jp>
Sender: news@osa.sci.jri.co.jp (NetNews)
Nntp-Posting-Host: oppc1
Organization: The Japan Research Institute,LTD.,JAPAN
References: <5miho0$rhd$1@nw012.infoweb.or.jp>
Mime-Version: 1.0 (generated by tm-edit 7.59)
Date: Thu, 29 May 1997 01:20:18 GMT
Lines: 17
Xref: galaxy.trc.rwcp.or.jp fj.lang.perl:2019
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.perl&nb=2019&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

In article <5miho0$rhd$1@nw012.infoweb.or.jp> yam@mb.infoweb.or.jp (Takashi Yamazaki) writes:

> #ex1:
> $i = 32.3;
> printf("result is %06d\n" , $i*1000);
> 
> result is 032299

%06.0f $B$K$9$k$H$&$^$/$$$/$h$&$G$9!#(B

% perl -e '$i=32.3;printf("%06.0f\n",$i*1000)'
032300

--
$B!J3t!KF|K\Am8&%7%9%F%`%=%j%e!<%7%g%s!!Bg:e%=%j%e!<%7%g%s;v6HIt(B
$B!!!!!!%M%C%H%o!<%/!&%3%s%T%e!<%F%#%s%0!&%G%#%S%8%g%s!!Bh#2%0%k!<%W(B
$B!!!!!!;0Eh!!@590(B
