well, you could override the modulus operator if you prefer, and use an idiom like
see overload for details. .$ans = ($y*1) ? $x % $y : 0;
In reply to Re: 0 illegal modulus?
by Vynce
in thread 0 illegal modulus?
by nella
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |