in reply to Re: Eliminating Trailing Zeros
in thread Eliminating Trailing Zeros
$n=sprintf("%2.4f",$n); $n =~ s/\.\d*?0+$//;
What do you think? Is there one that will cover this scenario too?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) 3Re: Eliminating Trailing Zeros
by jeffa (Bishop) on Jul 17, 2003 at 15:19 UTC | |
by pemungkah (Priest) on Jul 17, 2003 at 20:06 UTC | |
by dragonchild (Archbishop) on Jul 17, 2003 at 20:14 UTC |