ppfocus.com

🔢 Modulo Calculator

Calculate the remainder of division (a mod b) for positive, negative numbers and decimals with detailed step-by-step solutions.

Input Values

Note: Divisor cannot be zero

Results

Common Examples

17 mod 3
= 2
Click to try
27 mod 6
= 3
Click to try
-7 mod 3
= 2
Click to try
5.5 mod 2
= 1.5
Click to try
100 mod 7
= 2
Click to try
1 mod 2
= 1
Click to try

Modulo in Programming Languages

JavaScript a % b
Python a % b
Java a % b
C/C++ a % b
C# a % b
PHP a % b
Ruby a % b
Swift a % b

Frequently Asked Questions

⚠️ Disclaimer

This modulo calculator is provided for educational and reference purposes only. While we strive for accuracy, please verify important calculations independently. For professional mathematical work, consult with qualified experts or use specialized software.