http://qs321.pair.com?node_id=275222


in reply to Eliminating Trailing Zeros

$n =~ s/\.0*$|0*$//;
UPDATE: fixed lack of reading requirements


-pete
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."