in reply to Re: Want to Truncate A Number... NOT round it
in thread Want to Truncate A Number... NOT round it
be done better and clearer as:$na =~ s/(?<=\.\d\d\d)\d*$//;
?chop $na;
Liz
Update:
Since the 4 digits are guaranteed by the sprintf, there should be no problem in using chop().
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Want to Truncate A Number... NOT round it
by Nkuvu (Priest) on Feb 12, 2004 at 00:33 UTC |