Toolzy

Modulo Calculator

Compute a mod b as a true non-negative modulo plus the integer quotient.

a mod b

2

Integer quotient

3

Enter two numbers to get a mod b using true mathematical modulo (non-negative for a positive divisor) and the integer quotient.

How to use

  1. Enter the dividend a.
  2. Enter the divisor b (not zero).
  3. Read the true modulo and the integer quotient.

Frequently asked questions

How does this differ from the % operator?
JavaScript % can return a negative remainder. This tool gives the true mathematical modulo, which is non-negative when the divisor is positive.
What is the integer quotient?
It is a divided by b rounded down to the nearest whole number (the floor of the division).

Related tools