in reply to Multiplication problem
There's a much simpler commas() function, too, but I wouldn't replace what isn't broken.sub round { my ($num) = @_; return int( $num * 100 ) / 100; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Multiplication problem
by John Vanbeek (Initiate) on Dec 10, 2007 at 15:20 UTC | |
by dragonchild (Archbishop) on Dec 10, 2007 at 15:44 UTC | |
by John Vanbeek (Initiate) on Dec 10, 2007 at 16:28 UTC | |
by dragonchild (Archbishop) on Dec 11, 2007 at 20:56 UTC |