http://www.perlmonks.org?node_id=275232


in reply to Re: Re: Re: Eliminating Trailing Zeros
in thread Eliminating Trailing Zeros

Yup, but $n=sprintf("%2.4f",$n); will always return a number with a decimal, so that's not an issue.

Gary Blackburn
Trained Killer