All,

I want to format the output of my database query.


Current code 
while (@row =$sth->fetchrow() ) {
 print  join(',',@row);
 }

Results
1.38, .0396,.0076

Desired Results
1.38, 0.0396, 0.0076

Here's what I've tried.. but none of these formats appear 

$row[0] = sprintf("%04d",$row[2]);  ## results in  ==> 0.0000
$row[1] = sprintf("%0d.%04d",$row[4]);  ## results in ==>0.0000


Any suggestions?

Thanks,

Frank


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to