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 % operator, also known as the modulus operator, returns the remainder of a division operation. It is used to find the remainder when one number is divided by another.
Related terms
Division Operator (/): This operator performs division and returns the quotient.
Integer Division Operator (//): This operator performs division and returns only the whole number part of the quotient.
Remainder Operator (%): Similar to the modulus operator, this operator also returns the remainder of a division operation.