in reply to
printing floats nicely
$x =~ s/^(.*[.].*[^0]|.*[.])0*$/$1/; $x =~ s/\.$//;
[download]
Comment on
Re: printing floats nicely
Download
Code
In Section
Seekers of Perl Wisdom