Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
From what I learned in school, modulo is simply defined as:
According to PISA german schools are not the among the best anymore, but in this particular case, perl is with me. ;-) Note: This doesn't take into account that perls modulo is an integer modulo. Update: oops. That should of course be (as ivancho states.): $rest = $number - (($number/$modulo) * $modulo); Note to self: Don't post 5 minutes after waking up :-/ holli, /regexed monk/ In reply to Re^2: Illegal Modulus zero
by holli
|
|