In reply to Robert.Lanier:
The integer division effectively gives you a “floor” function. The +3 basically give you an offset on your argument. Try my solution, I think it fits your requirements perfectly.
In reply to Robert.Lanier:
The integer division effectively gives you a “floor” function. The +3 basically give you an offset on your argument. Try my solution, I think it fits your requirements perfectly.