The arithmetic you already do
If it is 10 o'clock and you wait 5 hours, it is 3 o'clock. You did not compute 15 and then apologise. You worked in a system where 15 and 3 are the same number, because only the remainder after dividing by 12 carries meaning.
Definition: Two integers are congruent modulo when they differ by a multiple of , written
So , and so do 27, 39 and . The notation is deliberately not an equals sign: these are genuinely different integers that this system declines to distinguish.
Everything that wraps around works this way: array indices in a ring buffer, hash buckets, days of the week, angles, fixed-width integer overflow, and the phase of a periodic signal.

