Swift: Remainder operator

Remainder operator works out  x % y how many multiples of y that fits in x and returns the left over value.

 

Leave a Reply