On 1/3/06, David Newman <[EMAIL PROTECTED]> wrote:
> One quick fix here is to use printf instead:
>
> printf "\n\%02f = %02f", $result, $result;
I believe you were doing this to round off "money numbers": numbers
with exactly two digits after the decimal point. To do that, you need
a slightly different printf format:
printf "%%.02f = %.02f\n", $result;
The two percent signs at the left print as a real percent sign (so as
to print out the format specification itself for this example). Hope
this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>