#Modulo keyword

11 messages · Page 1 of 1 (latest)

next lynx
#

so when you do modulo in java such as.
a % b
I would like to know what is "a" called and "b" called
like for example when multiplication as a multiplicand and multipler I would like to know that but for modulo

noble sigilBOT
#

Hey, @next lynx!
Please remember to /close this post once your question has been answered!

rapid vector
#

not sure through

lament sable
#

So yes, a "dividend" and "divisor" yield the "remainder" (careful, this differs from modulo for negative numbers)

rapid vector
#

what about negative

lament sable
#

If you want "true" mathematical modulo in Java, you have to do that yourself, there is no dedicated operator

rapid vector
#

ah right