Help for this page

Select Code to Download


  1. or download this
      use Math::Round qw(nearest);
    
      $quote = 418.00;
      $price = nearest(10, $quote);
    
  2. or download this
    sub nearest {
     my ($targ, @inputs) = @_;
    ...
     }
     return (wantarray) ? @res : $res[0];
    }