hi i am a mathemagician and vaguely experienced programmer of many years and i still get confused about which goes where whenever i use the modulo operator (%). i'm always dropping into the console or REPL to remind myself.
-
-
no, but
@omarieclaire was just asking this to me and I had no idea how negatives work with modulo! -
Basically there are two reasonable interpretations of a%b for negative a, though I always want the one which Java doesn't use, and I've forgotten why the one it does use is reasonable.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.