Skip to main content

learn.howToCalculate

learn.whatIsHeading

The modulo operation finds the remainder when one number is divided by another. Written as a mod b, it's essential in number theory, cryptography, and computer science.

Công thức

a mod b = remainder of a ÷ b

Hướng dẫn từng bước

  1. 1Divide a by b
  2. 2The remainder is the modulo result
  3. 3Result is always non-negative and less than b

Ví dụ có lời giải

đầu vào
17 mod 5
Kết quả
2
17 = 3 × 5 + 2

Lỗi thường gặp cần tránh

  • Confusing modulo with division
  • Incorrect remainder calculation

Sẵn sàng để tính toán? Dùng thử Máy tính Modulo miễn phí

Hãy tự mình thử →

Cài đặt