in reply to Re: Find if a number is a multiple of a number.
in thread Find if a number is a multiple of a number.
use % for positive integer values.What does make you think that the use % of is limited to positive integers?
$ perl -le 'print for map $_%-3, -18..-15' 0 -2 -1 0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Find if a number is a multiple of a number.
by borisz (Canon) on Mar 03, 2005 at 10:26 UTC | |
by blazar (Canon) on Mar 03, 2005 at 13:59 UTC |