๐Ÿ’ปap computer science a review

Modulo Operator (%)

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

The modulo operator (%) is used in programming to find the remainder when one number is divided by another. It takes a dividend and a divisor, and returns the remainder after performing division.

"Modulo Operator (%)" also found in: