Next problem: It is now printing the number as a negative: print "<PRE>\n"; printf "%15d bytes free in $phost:/var/tmp<BR>\n", $freespace;
Result: -999948288 bytes free in smh4:/var/tmp Any ideas? Thanks, CC ----- Original Message ----- From: "Bob Showalter" <[EMAIL PROTECTED]> To: "'Brett W. McCoy'" <[EMAIL PROTECTED]>; "Chuck" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, October 12, 2001 9:54 AM Subject: RE: Format interger printing, MORE INFO > > -----Original Message----- > > From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] > > Sent: Friday, October 12, 2001 12:17 AM > > To: Chuck > > Cc: Vinicius Jose Latorre; [EMAIL PROTECTED] > > Subject: Re: Format interger printing, MORE INFO > > > > > > On Thu, 11 Oct 2001, Chuck wrote: > > > > > Here is a snippet: > > > printf "%20d bytes free in $phost:/var/tmp<BR>\n", $freespace; > > > printf "$shipsize bytes being shipped.<P>\n"; > > > > > > Here is the output: > > > -1012379648 bytes free in smh4:/var/tmp > > > 359731200 bytes being shipped. > > > > It's because 3282567168, apparently, is too big to be printed as an > > integer value. But this works: > > > > $ perl -e 'printf "%20.f\n", 3282567168' > > 3282567168 > > Also, Chuck, your use of <BR>, and <P> makes me think this is HTML > being viewed in a browser? Repeated whitespace in HTML is ignored > except in <pre> tags... > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]