You can use the modulus operator :
if ( ! ($y % $x) ) { # it is an exact multiple }
/J\
In reply to Re: Find if a number is a multiple of a number.
by gellyfish
in thread Find if a number is a multiple of a number.
by Baratski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |