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().
In reply to Re: Re: Want to Truncate A Number... NOT round it
by liz
in thread Want to Truncate A Number... NOT round it
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |