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
In reply to Re^2: Find if a number is a multiple of a number.
by blazar
in thread Find if a number is a multiple of a number.
by Baratski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |