How Fraction Modulo Calculator Works?
The Fraction Modulo Calculator works in 5 steps: it reads the dividend and the divisor fractions, divides them, takes the floor of the quotient, and returns the mixed number whose fractional part gives the modulo. The modulo equals the fractional part times the divisor.
Enter the dividend
Type the first fraction, the value to divide. The example uses
23/6.Enter the divisor
Type the second fraction, the modulus, and keep the ÷ operator selected. The example uses
4/5.Divide the fractions
The calculator computes 23/6 × 5/4 = 115/24, shown as the mixed number 4 19/24 and the decimal 4.791667.
Take the floor
The whole part of the mixed number is the floor of the quotient for positive inputs: 4.
Compute the modulo
Multiply the fractional part by the divisor: 19/24 × 4/5 = 19/30. So 23/6 mod 4/5 = 19/30.
Fraction Modulo Calculator Formula
The fraction modulo formula is a mod b = a − b × ⌊a/b⌋, where ⌊ ⌋ is the floor function. The result always has the same sign as the divisor b.
Floored modulo
Subtract the largest whole multiple of b that fits in a. 7/2 mod 3/4 = 7/2 − 4 × 3/4 = 1/2.
Fractional part method
Multiply the fractional part {a ÷ b} of the quotient by the divisor. 9/4 ÷ 2/3 = 3 3/8, so 9/4 mod 2/3 = 3/8 × 2/3 = 1/4.
Common denominator form
Rewrite both fractions over a common denominator d, then take the modulo of the numerators. 11/6 mod 1/4 = 22/12 mod 3/12 = 1/12.
Worked example: 23/6 mod 4/5
- Divide: 23/6 ÷ 4/5 = 23/6 × 5/4 = 115/24.
- Write the quotient as a mixed number: 115/24 = 4 19/24.
- Take the floor: ⌊115/24⌋ = 4.
- Subtract the whole multiples: 23/6 − 4 × 4/5 = 115/30 − 96/30 = 19/30.
- Check: 19/24 × 4/5 = 76/120 = 19/30 = 0.6333.
Fraction Modulo Calculator Conversion Table
The fraction modulo conversion table lists 13 modulo operations with fractions, the quotient, the floor, and the modulo result.
| Expression | Quotient a ÷ b | Floor | a mod b | Decimal |
|---|---|---|---|---|
| 7/2 mod 3/4 | 14/3 | 4 | 1/2 | 0.5 |
| 5/3 mod 1/2 | 10/3 | 3 | 1/6 | 0.1667 |
| 9/4 mod 2/3 | 27/8 | 3 | 1/4 | 0.25 |
| 11/6 mod 1/4 | 22/3 | 7 | 1/12 | 0.0833 |
| 5/2 mod 5/6 | 3 | 3 | 0 | 0 |
| 7/8 mod 1/3 | 21/8 | 2 | 5/24 | 0.2083 |
| 13/5 mod 1/2 | 26/5 | 5 | 1/10 | 0.1 |
| 10/3 mod 3/2 | 20/9 | 2 | 1/3 | 0.3333 |
| 15/4 mod 5/3 | 9/4 | 2 | 5/12 | 0.4167 |
| 17/6 mod 3/4 | 34/9 | 3 | 7/12 | 0.5833 |
| 3 mod 2/5 | 15/2 | 7 | 1/5 | 0.2 |
| 23/6 mod 4/5 | 115/24 | 4 | 19/30 | 0.6333 |
| -7/4 mod 1/2 | -7/2 | -4 | 1/4 | 0.25 |
What is Fraction Modulo Calculator?
A Fraction Modulo Calculator is a tool that finds the remainder left after removing the largest whole number of divisor fractions from a dividend fraction. The modulo operation extends a mod b from integers to rational numbers.
The modulo result always falls between 0 and the divisor. For 10/3 mod 3/2, the divisor 3/2 fits into 10/3 twice, using 3, and the remainder is 1/3. A result of 0 means the divisor divides the dividend exactly, as in 5/2 mod 5/6.
Negative inputs follow 2 conventions. Floored modulo, used in Python and in mathematics, gives -7/4 mod 1/2 = 1/4. Truncated modulo, used by the % operator in JavaScript and C, gives -1/4. The calculator shows a truncated mixed number (-3 1/2) for negative quotients, so apply the floor by hand, if the dividend is negative.
What are the uses of Fraction Modulo Calculator?
The Fraction Modulo Calculator has 6 main uses, including periodic angle reduction, programming checks, and music rhythm.
Angle reduction
Trigonometry students reduce angles written as fractions of a turn, for example 9/4 turns mod 1 turn = 1/4 turn (90°).
Programming checks
Developers verify the output of modulo operations on rational types, such as Fraction(23, 6) % Fraction(4, 5) in Python.
Music rhythm
Composers find where a note falls in a bar. A note at beat 15/4 in a bar of 5/3 beats falls 5/12 of a beat into the third bar.
Repeating patterns
Designers place tiles of width 3/4 ft along a 17/6 ft wall and find a leftover strip of 7/12 ft (17.78 cm).
Number theory practice
Math learners extend integer congruence ideas to rational numbers and test the floor rule.
Time cycles
Planners find the leftover time when a 3/2 h cycle repeats inside 10/3 h: 1/3 h, or 20 minutes.