On Jun 13, Frank Newland said:
>Results
>1.38, .0396,.0076
>
>Desired Results
>1.38, 0.0396, 0.0076
>
>$row[0] = sprintf("%04d",$row[2]); ## results in ==> 0.0000
>$row[1] = sprintf("%0d.%04d",$row[4]); ## results in ==>0.0000
%d is for INTEGERS. You have floating points, so use %f.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
[ I'm looking for programming work. If you like my work, let me know. ]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]