I want to create a "datatype", that does an underflow in constant time.
So if you have 10 as an upper bound, and pass the value 12, it gives you 8.
In the following code, max is the upper entry bound for my value val.
while(val > max)
val -= max;
Currently I have only this iterative code, which could be expressed with a modulo-operation. I just don't know how.
