⌨️ap computer science principles review

Modulus operator

Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2027 exam
Verified for the 2027 examWritten by the Fiveable Content Team • Last updated August 2025

Definition

An arithmetic operator that evaluates to the remainder when one integer is divided by another; for example, 17 MOD 5 evaluates to 2.

AP course connection

Topic 3.3: 3.3 Mathematical Expressions

Unit 3

"Modulus operator" also found in: