From: James Parsons <[EMAIL PROTECTED]>
> I have this script the calculates the sum  a bunch of  numbers and
> prints the final number to file, but my problem is I would like the
> number to have a floating  $sign but I'm sure how do this
> 
> printf ("%7.2f\n",$total);  
> 
> 
> The number comes out as 120.23   instead of $120.23..

Well you did not tell Perl to prepend the dollar ...

        printf ("\$%.2f\n",$total);

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


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

Reply via email to