in reply to Floats with trailing zeros as a hash key
Use printf rather than print to output the hash keys.
printf "%.2f\n", $_ for keys %ITEMS; __OUTPUT__ 58.29 38.55 45.20 29.95
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Floats with trailing zeros as a hash key
by hardburn (Abbot) on May 09, 2003 at 14:59 UTC | |
by kilinrax (Deacon) on May 09, 2003 at 15:05 UTC |
In Section
Seekers of Perl Wisdom