Table of Contents

Definition


The % is the modulo operator. It gets the division remainder between two numbers.

For example:
375 % 360 = 15, 360 % 360 = 0, 90 % 360 = 90, etc.

Use Cases


For an example use of the modulo operator, see normalizing an angle.