|XP is just a number|
Find if a number is a multiple of a number.by Baratski (Acolyte)
|on Mar 02, 2005 at 12:29 UTC||Need Help??|
Baratski has asked for the
wisdom of the Perl Monks concerning the following question:
Is there a better way, other than my following example, to find if a number is a multiple of a number?
My klunky way would be to keep subtracting x from y and look for a zero value. This seems like a long haul if I have to keep subtracting say, 4 from 123456789, or something like that.
Is there a better way?