Carrot reference
Operators

% (modulus)

An operator used to calculate the remainder of a division operation.

Syntax

dividend % divisor

Sample usage

10 % 7 returns 3

Supported data types

  • Given two values of type Number, the modulus operator will return the remainder of the first value divided by the second value.

See also



Updated 04 Oct 2023
Doc contributor
Did this page help you?