in reply to Re: Re: Is There A Better Way?in thread Is There A Better Way?
sub a{$_=int$_[0]*10**$_[1]+.5;s;(.{$_[1]})$;\.$1;;chop if substr($_,- +1)eq'.';return$_}; [download]