$n=sprintf("%2.4f",$n); $n =~ s/\.\d*?0+$//;
What do you think? Is there one that will cover this scenario too?
In reply to Re: Re: Eliminating Trailing Zeros
by Anonymous Monk
in thread Eliminating Trailing Zeros
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |