in reply to Rounding to the nearest 50
for my $n (148..153) { print $n + 50 - $n % 50, "\n"; }
for my $n (148..153) { print $n, '=>', $n + 49 - ($n - 1) % 50, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Rounding to the nearest 50
by esskar (Deacon) on Mar 01, 2004 at 14:22 UTC |