Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What good is modulus (%)?

Name: Anonymous 2010-06-27 14:52

I've written dozens of computer programs, and have never even come close to having to use this silly operator.

Name: Anonymous 2010-06-27 17:40

You would use the modulus in favor of it's mathematical counterparts you can conjure up because of simplicity. Wouldn't you prefer one "%" instead of "i-(i/j)*j" simply for simplicity? Clearly, it clears up your code.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List